From 8d475f7f45a9ab41ff2a92896297ed18ed3e6c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=AF=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=B2?= Date: Tue, 30 Apr 2024 19:08:34 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BE=D1=87=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implements/DefectStorage.cs | 2 -- .../Implements/TechnicalWorkStorage.cs | 3 --- 2 files changed, 5 deletions(-) diff --git a/ServiceStation/ServiceStationDatabaseImplement/Implements/DefectStorage.cs b/ServiceStation/ServiceStationDatabaseImplement/Implements/DefectStorage.cs index 082b095..667bb2f 100644 --- a/ServiceStation/ServiceStationDatabaseImplement/Implements/DefectStorage.cs +++ b/ServiceStation/ServiceStationDatabaseImplement/Implements/DefectStorage.cs @@ -44,7 +44,6 @@ namespace ServiceStationDatabaseImplement.Implements .Include(x => x.Repair) .Include(x => x.Executor) .Where(x => x.ExecutorId == model.ExecutorId) - .ToList() .Select(x => x.GetViewModel) .ToList(); } @@ -56,7 +55,6 @@ namespace ServiceStationDatabaseImplement.Implements .Include(x => x.Repair) .Include(x => x.Executor) .Where(x => x.DefectType == model.DefectType) - .ToList() .Select(x => x.GetViewModel) .ToList(); } diff --git a/ServiceStation/ServiceStationDatabaseImplement/Implements/TechnicalWorkStorage.cs b/ServiceStation/ServiceStationDatabaseImplement/Implements/TechnicalWorkStorage.cs index 4c4d94e..451cc54 100644 --- a/ServiceStation/ServiceStationDatabaseImplement/Implements/TechnicalWorkStorage.cs +++ b/ServiceStation/ServiceStationDatabaseImplement/Implements/TechnicalWorkStorage.cs @@ -24,7 +24,6 @@ namespace ServiceStationDatabaseImplement.Implements .ThenInclude(x => x.CarDefects) .ThenInclude(x => x.Defect) .Include(x => x.Executor) - .ToList() .Select(x => x.GetViewModel) .ToList(); } @@ -58,7 +57,6 @@ namespace ServiceStationDatabaseImplement.Implements .ThenInclude(x => x.Defect) .Include(x => x.Executor) .Where(x => x.ExecutorId == model.ExecutorId) - .ToList() .Select(x => x.GetViewModel) .ToList(); } @@ -69,7 +67,6 @@ namespace ServiceStationDatabaseImplement.Implements .ThenInclude(x => x.Defect) .Include(x => x.Executor) .Where(x => x.WorkType.Contains(model.WorkType)) - .ToList() .Select(x => x.GetViewModel) .ToList(); }