public ServiceRate GetServiceRateAtDate(DateTime refDate, Services.Service service) { return(ServiceRates .Where(x => x.EffectiveDate <= refDate && x.ServiceID == service.ID) .OrderByDescending(x => x.EffectiveDate) .FirstOrDefault()); }