14 lines
535 B
C#
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);
|
|
}
|
|
}
|