From 5f3b2769f504f6f1ea1c672703ecefa1cf131fd9 Mon Sep 17 00:00:00 2001 From: m1aksim1 Date: Sun, 23 Apr 2023 00:52:10 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81=D0=B0=20=D1=84=D0=B8=D0=BA=D1=81=D0=B0^2=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SoftwareInstallationListImplement/Order.cs | 1 - .../SoftwareInstallationListImplement/OrderStorage.cs | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SoftwareInstallation/SoftwareInstallationListImplement/Order.cs b/SoftwareInstallation/SoftwareInstallationListImplement/Order.cs index d5f1a38..33af5ec 100644 --- a/SoftwareInstallation/SoftwareInstallationListImplement/Order.cs +++ b/SoftwareInstallation/SoftwareInstallationListImplement/Order.cs @@ -62,7 +62,6 @@ namespace SoftwareInstallationListImplement.Models PackageId = PackageId, ClientId = ClientId, ImplementerId = ImplementerId, - ImplementerFIO = DataListSingleton.GetInstance().Implementers.FirstOrDefault(x => x.Id == ImplementerId)?.ImplementerFIO ?? string.Empty, Count = Count, Sum = Sum, Status = Status, diff --git a/SoftwareInstallation/SoftwareInstallationListImplement/OrderStorage.cs b/SoftwareInstallation/SoftwareInstallationListImplement/OrderStorage.cs index 91b4b27..e178ae0 100644 --- a/SoftwareInstallation/SoftwareInstallationListImplement/OrderStorage.cs +++ b/SoftwareInstallation/SoftwareInstallationListImplement/OrderStorage.cs @@ -137,6 +137,14 @@ namespace SoftwareInstallationListImplement.Implements break; } } + foreach (var implement in _source.Implementers) + { + if (implement.Id == res.ImplementerId) + { + res.ClientFIO = implement.ImplementerFIO; + break; + } + } return res; } }