From f40d8a97af13cf286c67af856e93a71935e44238 Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Tue, 7 May 2024 19:07:57 +0400 Subject: [PATCH] lab-6-hard fix --- .../BusinessLogics/OrderLogic.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/BusinessLogics/OrderLogic.cs b/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/BusinessLogics/OrderLogic.cs index b4d748a..db921be 100644 --- a/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/BusinessLogics/OrderLogic.cs @@ -21,11 +21,9 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogics private readonly IShopLogic _shopLogic; private readonly IManufactureStorage _manufactureStorage; private readonly IShopStorage _shopStorage; + static readonly object locker = new object(); public OrderLogic(ILogger logger, IOrderStorage orderStorage, IManufactureStorage manufactureStorage, IShopLogic shopLogic, IShopStorage shopStorage) - static readonly object locker = new object(); - - public OrderLogic(ILogger logger, IOrderStorage orderStorage) { _logger = logger; _orderStorage = orderStorage; @@ -76,7 +74,6 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogics } private bool ChangeStatus(OrderBindingModel model, OrderStatus status) - public bool ChangeStatus(OrderBindingModel model, OrderStatus status) { CheckModel(model, false); var element = _orderStorage.GetElement(new OrderSearchModel { Id = model.Id });