From 3a590e97b7fe01027663ad7fc2ed588fe21a5dec Mon Sep 17 00:00:00 2001 From: Zakharov_Rostislav Date: Mon, 27 May 2024 01:51:16 +0400 Subject: [PATCH] fix --- .../BusinessLogic/ReportLogic.cs | 5 ----- .../BusinessLogicsContracts/IReportLogic.cs | 2 -- Bank/BankRestApi/Controllers/ReportController.cs | 16 +--------------- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs index d7ba514..7c7bdf4 100644 --- a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs +++ b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs @@ -145,11 +145,6 @@ namespace BankBusinessLogic.BusinessLogic }) }); } - - public void SendTransfersWithdrawalsToEmail(ReportBindingModel model) - { - throw new NotImplementedException(); - } #endregion } } diff --git a/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs b/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs index d74a657..2d94505 100644 --- a/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs +++ b/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs @@ -22,7 +22,5 @@ namespace BankContracts.BusinessLogicsContracts void SaveTransfersToExcelFile(ReportBindingModel model); void SaveOperationsRequestsToPdfFile(ReportBindingModel model); void SaveTransfersWithdrawalsToPdfFile(ReportBindingModel model); - void SendTransfersWithdrawalsToEmail(ReportBindingModel model); - void SandOperationsRequestsToEmail(ReportBindingModel model); } } diff --git a/Bank/BankRestApi/Controllers/ReportController.cs b/Bank/BankRestApi/Controllers/ReportController.cs index 4d1d2a9..3de5221 100644 --- a/Bank/BankRestApi/Controllers/ReportController.cs +++ b/Bank/BankRestApi/Controllers/ReportController.cs @@ -75,21 +75,7 @@ namespace BankRestApi.Controllers { try { - _logic.SendTransfersWithdrawalsToEmail(model); - } - catch (Exception ex) - { - _logger.LogError(ex, "Ошибка сохранения переводов в ворд"); - throw; - } - } - - [HttpPost] - public void SendOperationsRequestsToEmail(ReportBindingModel model) - { - try - { - _logic.SandOperationsRequestsToEmail(model); + _logic.SaveTransfersWithdrawalsToPdfFile(model); } catch (Exception ex) {