lab-6-hard fix

This commit is contained in:
Zakharov_Rostislav 2024-05-07 19:07:57 +04:00
parent 9726fa20ce
commit f40d8a97af

View File

@ -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<OrderLogic> logger, IOrderStorage orderStorage,
IManufactureStorage manufactureStorage, IShopLogic shopLogic, IShopStorage shopStorage)
static readonly object locker = new object();
public OrderLogic(ILogger<OrderLogic> 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 });