То исправление ценою в жизнь.....
This commit is contained in:
commit
ad57580040
@ -78,6 +78,11 @@ namespace FurnitureAssemblyBusinessLogic
|
||||
if (modelNew == null) {
|
||||
return false;
|
||||
}
|
||||
if (!_shopLogic.AddFurnituresAtShops(new FurnitureBindingModel() { Id = model.FurnitureId }, model.Count))
|
||||
{
|
||||
_logger.LogWarning("There are not empty places at shops. Replenishment is impossible");
|
||||
return false;
|
||||
}
|
||||
model.Status = modelNew.Status;
|
||||
model.ImplementerId = modelNew.ImplementerId;
|
||||
if (!ChangeStatus(model, OrderStatus.Готов))
|
||||
@ -97,12 +102,7 @@ namespace FurnitureAssemblyBusinessLogic
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!_shopLogic.AddFurnituresAtShops(new FurnitureBindingModel() { Id = model.FurnitureId}, model.Count))
|
||||
{
|
||||
_logger.LogWarning("There are not empty places at shops. Replenishment is impossible");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
model.Status = modelNew.Status;
|
||||
model.ImplementerId = modelNew.ImplementerId;
|
||||
|
Loading…
Reference in New Issue
Block a user