This commit is contained in:
Данияр Аглиуллов 2023-03-05 13:43:17 +04:00
parent 667b42a0be
commit a41ba7b7d1

View File

@ -59,15 +59,7 @@ namespace ConfectioneryRestApi.Controllers
[HttpPost]
public void AddPastryInShop(Tuple<ShopSearchModel, IPastryModel, int> countPastryForShop)
{
try
{
_logic.AddPastry(countPastryForShop.Item1, countPastryForShop.Item2, countPastryForShop.Item3);
}
catch (Exception ex)
{
_logger.LogError(ex, "Ошибка пополнения магазина изделиями");
throw;
}
CRUDShop(() => _logic.AddPastry(countPastryForShop.Item1, countPastryForShop.Item2, countPastryForShop.Item3));
}
}
}