fix transfer controller
This commit is contained in:
parent
4b24ac5ae9
commit
4721aed1c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user