From 85dc0d0ddd52b17d87f9215d5a0df66ed9db0b64 Mon Sep 17 00:00:00 2001 From: "yuliya.mavrina@internet.ru" Date: Tue, 23 Apr 2024 15:52:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=5F2=D1=81=D0=BB=D0=BE=D0=B6?= =?UTF-8?q?=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessLogics/OrderLogic.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;