вылет нужной ошибки

This commit is contained in:
Леонид Малафеев 2024-05-05 22:12:53 +04:00
parent 49c8023f82
commit 3a6b4ed949

View File

@ -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())
{