24 lines
733 B
C#
24 lines
733 B
C#
using CRIF.ACTion.Configuration;
|
|
using Landmark.OLA.Models.Loan;
|
|
|
|
namespace CRIF.ACTion.Services.Landmark.DistributionChannel
|
|
{
|
|
public class LandmarkDistributionChannelLookupService : IDistributionChannelLookupService
|
|
{
|
|
private readonly ServicingChannelSettings _settings;
|
|
|
|
public LandmarkDistributionChannelLookupService(CrifSettings settings)
|
|
{
|
|
_settings = settings.ServicingChannels;
|
|
}
|
|
|
|
public int GetDistributionChannelByZipCode(string zipCode)
|
|
{
|
|
var partyId = BranchMapping.BranchCodesByZip.TryGetValue(zipCode, out int foundValue)
|
|
? foundValue : _settings.DefaultServicingChannel;
|
|
|
|
return partyId;
|
|
}
|
|
}
|
|
}
|