То исправление ценою в жизнь.....

This commit is contained in:
prodigygirl 2023-04-19 18:28:14 +04:00
commit ad57580040

View File

@ -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;