вылет нужной ошибки
This commit is contained in:
parent
49c8023f82
commit
3a6b4ed949
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user