lab-6-hard fix
This commit is contained in:
parent
9726fa20ce
commit
f40d8a97af
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user