From a621af5ca90bf2e7c74da50c79fabed951fbd26b Mon Sep 17 00:00:00 2001 From: "nastya.girl.22@mail.ru" Date: Tue, 25 Apr 2023 23:03:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B0=20=D0=B8=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LawFirm/LawFirmFileImplement/Models/Order.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/LawFirm/LawFirmFileImplement/Models/Order.cs b/LawFirm/LawFirmFileImplement/Models/Order.cs index dcbaad9..077fb47 100644 --- a/LawFirm/LawFirmFileImplement/Models/Order.cs +++ b/LawFirm/LawFirmFileImplement/Models/Order.cs @@ -74,12 +74,11 @@ namespace LawFirmFileImplement.Models { return; } - DocumentId = model.DocumentId; - Count = model.Count; - Sum = model.Sum; Status = model.Status; - DateCreate = model.DateCreate; - DateImplement = model.DateImplement; + if (model.DateImplement.HasValue) + { + DateImplement = model.DateImplement; + } } public OrderViewModel GetViewModel => new()