fix
This commit is contained in:
parent
667b42a0be
commit
a41ba7b7d1
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user