Фикс функции фильтрации диагнозов, фикс фиьлтрации по датам

This commit is contained in:
Никита Потапов 2024-05-01 11:40:13 +04:00
parent 775a442ee8
commit ac12c85d7d

View File

@ -50,7 +50,11 @@ namespace PolyclinicDatabaseImplement.Implements
}
if (model.To != null)
{
elements = elements.Where(x => x.DateStopDiagnose <= model.To.Value).ToList();
elements = elements
.Where(x => x.DateStartDiagnose <= model.To.Value)
.Where(x => x.DateStopDiagnose != null)
.Where(x => x.DateStopDiagnose <= model.To.Value)
.ToList();
}
return elements;
}