From 3a6b4ed9499d59ba5424755bca6fab1cca7dc8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=9C=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=D1=84=D0=B5=D0=B5=D0=B2?= Date: Sun, 5 May 2024 22:12:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=8B=D0=BB=D0=B5=D1=82=20=D0=BD=D1=83?= =?UTF-8?q?=D0=B6=D0=BD=D0=BE=D0=B9=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JewelryStoreBusinessLogic/BusinessLogics/OrderLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JewelryStore/JewelryStoreBusinessLogic/BusinessLogics/OrderLogic.cs b/JewelryStore/JewelryStoreBusinessLogic/BusinessLogics/OrderLogic.cs index e49d8bb..3b999e3 100644 --- a/JewelryStore/JewelryStoreBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/JewelryStore/JewelryStoreBusinessLogic/BusinessLogics/OrderLogic.cs @@ -165,7 +165,7 @@ namespace JewelryStoreBusinessLogic.BusinessLogics if (freeSpace < count) { _logger.LogWarning("Check supply error. No place for new Jewels"); - return false; + throw new Exception("Нет места для новых драгоценностей"); } foreach (var shop in _shopStorage.GetFullList()) {