fix transfer controller

This commit is contained in:
Zakharov_Rostislav 2024-05-26 00:07:30 +04:00
parent 4b24ac5ae9
commit 4721aed1c9

View File

@ -17,9 +17,23 @@ namespace BankRestApi.Controllers
{
_logger = logger;
_logic = logic;
}
}
[HttpGet]
[HttpGet]
public List<TransferViewModel>? getTransferList()
{
try
{
return _logic.ReadList(null);
}
catch (Exception ex)
{
_logger.LogError(ex, "Ошибка получения списка переводов");
throw;
}
}
[HttpGet]
public List<TransferViewModel>? getTransferList(int managerId)
{
try