From 6358f6481b7c56be211b8cb36241a95c9ef01968 Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Sun, 26 May 2024 12:57:46 +0400 Subject: [PATCH] Revert "fix transfer controller p.3" This reverts commit d7ddf1940788bd8207cd776c54a65f9769a840b9. --- .../Controllers/TransferController.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Bank/BankRestApi/Controllers/TransferController.cs b/Bank/BankRestApi/Controllers/TransferController.cs index b0d5ed2..b807a91 100644 --- a/Bank/BankRestApi/Controllers/TransferController.cs +++ b/Bank/BankRestApi/Controllers/TransferController.cs @@ -20,7 +20,21 @@ namespace BankRestApi.Controllers } [HttpGet] - public List? getTransferList(int? managerId) + public List? getFullTransferList() + { + try + { + return _logic.ReadList(null); + } + catch (Exception ex) + { + _logger.LogError(ex, "Ошибка получения списка переводов"); + throw; + } + } + + [HttpGet] + public List? getTransferList(int managerId) { try {