From 054c0232bf5b2b8d5b77c4339191b674378a14e1 Mon Sep 17 00:00:00 2001 From: Timourka Date: Mon, 26 Feb 2024 01:06:09 +0400 Subject: [PATCH] =?UTF-8?q?2C=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BE=D1=87=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutomobilePlantBusinessLogic/BusinessLogics/OrderLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/OrderLogic.cs b/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/OrderLogic.cs index 9af33ef..0c8aa1a 100644 --- a/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/AutomobilePlant/AutomobilePlantBusinessLogic/BusinessLogics/OrderLogic.cs @@ -136,7 +136,7 @@ namespace AutomobilePlantBusinessLogic.BusinessLogics throw new InvalidOperationException("Текущий статус заказа не может быть переведен в выбранный"); } - if (status == OrderStatus.Готов) + if (status == OrderStatus.Выдан) { var car = _carStorage.GetElement(new CarSearchModel() { Id = model.CarId }); if (car == null)