fix
This commit is contained in:
parent
667b42a0be
commit
a41ba7b7d1
@ -59,15 +59,7 @@ namespace ConfectioneryRestApi.Controllers
|
|||||||
[HttpPost]
|
[HttpPost]
|
||||||
public void AddPastryInShop(Tuple<ShopSearchModel, IPastryModel, int> countPastryForShop)
|
public void AddPastryInShop(Tuple<ShopSearchModel, IPastryModel, int> countPastryForShop)
|
||||||
{
|
{
|
||||||
try
|
CRUDShop(() => _logic.AddPastry(countPastryForShop.Item1, countPastryForShop.Item2, countPastryForShop.Item3));
|
||||||
{
|
|
||||||
_logic.AddPastry(countPastryForShop.Item1, countPastryForShop.Item2, countPastryForShop.Item3);
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
_logger.LogError(ex, "Ошибка пополнения магазина изделиями");
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user