From 987f1174b272168d1976b4b4a13171fda67476da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B0=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A4=D0=B5=D0=B4?= =?UTF-8?q?=D0=BE=D1=80=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Sat, 2 Mar 2024 15:56:29 +0400 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D1=81=D1=82=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implements/ShopStorage.cs | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/CarpentryWorkshop/CarpentryWorkshopListImplement/Implements/ShopStorage.cs b/CarpentryWorkshop/CarpentryWorkshopListImplement/Implements/ShopStorage.cs index 5f6c4c4..fc8c47b 100644 --- a/CarpentryWorkshop/CarpentryWorkshopListImplement/Implements/ShopStorage.cs +++ b/CarpentryWorkshop/CarpentryWorkshopListImplement/Implements/ShopStorage.cs @@ -100,36 +100,5 @@ namespace CarpentryWorkshopListImplement.Implements } return null; } - - /* public bool SupplyWood(ShopSearchModel model, IWoodModel wood, int count) - { - if (model == null) - throw new ArgumentNullException(nameof(model)); - if (wood == null) - throw new ArgumentNullException(nameof(wood)); - if (count <= 0) - throw new ArgumentNullException("Количество должно быть положительным числом"); - - ShopViewModel curModel = GetElement(model); - if (curModel == null) - throw new ArgumentNullException(nameof(curModel)); - if (curModel.ShopWoods.TryGetValue(wood.Id, out var pair)) - { - curModel.ShopWoods[wood.Id] = (pair.Item1, pair.Item2 + count); - } - else - { - curModel.ShopWoods.Add(wood.Id, (wood, count)); - } - Update(new() - { - Id = curModel.Id, - ShopName = curModel.ShopName, - DateOpen = curModel.DateOpen, - Address = curModel.Address, - ShopWoods = curModel.ShopWoods, - }); - return true; - } */ } }