ISEbd-22 Mavrina J.E. Hard_Labwork 2 #10

Closed
Mavrina_Julia wants to merge 8 commits from Лаб_2_сложн into Лаб_1_сложн
Showing only changes of commit 85dc0d0ddd - Show all commits

View File

@ -64,13 +64,13 @@ namespace RenovationWorkBusinessLogic.BusinessLogics
}
if (element.Status == OrderStatus.Готов)
{
var manufacture = _repairStorage.GetElement(new RepairSearchModel() { Id = model.RepairId });
if (manufacture == null)
var repair = _repairStorage.GetElement(new RepairSearchModel() { Id = model.RepairId });
if (repair == null)
{
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Document not found.");
return false;
}
if (CheckSupply(manufacture, model.Count) == false)
if (CheckSupply(repair, model.Count) == false)
{
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Shop supply error.");
return false;