вливаю всё, что было создано на 5, 6, 7 этапах в ветку main #12
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user