Files
2026-03-11 11:18:25 -05:00

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;
}
}
}