From ccfe49dde98d3914b9b28ae1ab4f3904b8ff0a4c Mon Sep 17 00:00:00 2001 From: Danila_Mochalov Date: Sun, 26 Feb 2023 23:22:27 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=83=D0=B4=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LawFirm/LawFirmFileImplement/Implements/BlankStorage.cs | 2 +- LawFirm/LawFirmFileImplement/Implements/DocumentStorage.cs | 2 +- LawFirm/LawFirmFileImplement/Implements/OrderStorage.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LawFirm/LawFirmFileImplement/Implements/BlankStorage.cs b/LawFirm/LawFirmFileImplement/Implements/BlankStorage.cs index 47b885b..bb10978 100644 --- a/LawFirm/LawFirmFileImplement/Implements/BlankStorage.cs +++ b/LawFirm/LawFirmFileImplement/Implements/BlankStorage.cs @@ -79,7 +79,7 @@ namespace LawFirmFileImplement.Implements { return null; } - blank.Update(model); + source.Blanks.Remove(blank); source.SaveBlanks(); return blank.GetViewModel; } diff --git a/LawFirm/LawFirmFileImplement/Implements/DocumentStorage.cs b/LawFirm/LawFirmFileImplement/Implements/DocumentStorage.cs index 7629dfa..dd74260 100644 --- a/LawFirm/LawFirmFileImplement/Implements/DocumentStorage.cs +++ b/LawFirm/LawFirmFileImplement/Implements/DocumentStorage.cs @@ -78,7 +78,7 @@ namespace LawFirmFileImplement.Implements { return null; } - document.Update(model); + source.Documents.Remove(document); source.SaveDocuments(); return document.GetViewModel; } diff --git a/LawFirm/LawFirmFileImplement/Implements/OrderStorage.cs b/LawFirm/LawFirmFileImplement/Implements/OrderStorage.cs index baee8c5..46a8d01 100644 --- a/LawFirm/LawFirmFileImplement/Implements/OrderStorage.cs +++ b/LawFirm/LawFirmFileImplement/Implements/OrderStorage.cs @@ -78,7 +78,7 @@ namespace LawFirmFileImplement.Implements { return null; } - order.Update(model); + source.Orders.Remove(order); source.SaveOrders(); return order.GetViewModel; }