Files
monorepo/LCU.API.Internal.LoanRate/LCU.API.Internal.LoanRateLib/Extensions/Queryables/RateUploadInfoEffectiveDateQueryable.cs
T
2026-04-07 14:21:04 -05:00

14 lines
535 B
C#

namespace LCU.API.Internal.LoanRateLib.Extensions.Queryables;
public static class RateUploadInfoEffectiveDateQueryable
{
public static IQueryable<RateUploadInfo> FilterByEffectiveDate(this IQueryable<RateUploadInfo> queryable, RateUploadInfoFilter rateUploadInfoFilter)
{
if (rateUploadInfoFilter.EffectiveDate == null)
{
return queryable;
}
return queryable.Where(rateUploadInfo => rateUploadInfo.EffectiveDate.Date == ((DateTime)rateUploadInfoFilter.EffectiveDate).Date);
}
}