diff --git a/RenovationWork/RenovationWorkBusinessLogic/BusinessLogics/OrderLogic.cs b/RenovationWork/RenovationWorkBusinessLogic/BusinessLogics/OrderLogic.cs index c98ff20..4c03d03 100644 --- a/RenovationWork/RenovationWorkBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/RenovationWork/RenovationWorkBusinessLogic/BusinessLogics/OrderLogic.cs @@ -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;