вливаю всё, что было создано на 5, 6, 7 этапах в ветку main #12

Merged
ekallin merged 180 commits from stage7_user_web_interface_prototype into main 2024-05-01 19:15:20 +04:00
Showing only changes of commit 7d5c2e2cf5 - Show all commits

View File

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