diff --git a/Bank/BankRestApi/Controllers/TransferController.cs b/Bank/BankRestApi/Controllers/TransferController.cs index f500242..e6ac11a 100644 --- a/Bank/BankRestApi/Controllers/TransferController.cs +++ b/Bank/BankRestApi/Controllers/TransferController.cs @@ -17,9 +17,23 @@ namespace BankRestApi.Controllers { _logger = logger; _logic = logic; - } + } - [HttpGet] + [HttpGet] + public List? getTransferList() + { + try + { + return _logic.ReadList(null); + } + catch (Exception ex) + { + _logger.LogError(ex, "Ошибка получения списка переводов"); + throw; + } + } + + [HttpGet] public List? getTransferList(int managerId) { try