// 날짜 검색 추가 
if (startDate.HasValue && endDate.HasValue)
{
    items = items.Where(x => x.Occurred >= startDate && x.Occurred <= endDate);
}

 

if (from != null && to != null)
{
    items = items.Where(it => it.CreatedDate >= from && it.CreatedDate <= to);
}

 

Comments


Comments are closed