From ac12c85d7d04f43b1e2d34b103d210c06f4240c2 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Wed, 1 May 2024 11:40:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D1=84=D1=83=D0=BD?= =?UTF-8?q?=D0=BA=D1=86=D0=B8=D0=B8=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B4=D0=B8=D0=B0=D0=B3=D0=BD=D0=BE?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2,=20=D1=84=D0=B8=D0=BA=D1=81=20=D1=84=D0=B8?= =?UTF-8?q?=D1=8C=D0=BB=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BF=D0=BE?= =?UTF-8?q?=20=D0=B4=D0=B0=D1=82=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implements/DiagnoseStorage.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Polyclinic/PolyclinicDatabaseImplement/Implements/DiagnoseStorage.cs b/Polyclinic/PolyclinicDatabaseImplement/Implements/DiagnoseStorage.cs index ebb936d..bf0c673 100644 --- a/Polyclinic/PolyclinicDatabaseImplement/Implements/DiagnoseStorage.cs +++ b/Polyclinic/PolyclinicDatabaseImplement/Implements/DiagnoseStorage.cs @@ -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; }