From 2a9bc25bcea3579732503b14ed03ff7aa4018c57 Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Mon, 27 May 2024 01:58:54 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bank/BankRestApi/Controllers/ReportController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Bank/BankRestApi/Controllers/ReportController.cs b/Bank/BankRestApi/Controllers/ReportController.cs index 3de5221..e310851 100644 --- a/Bank/BankRestApi/Controllers/ReportController.cs +++ b/Bank/BankRestApi/Controllers/ReportController.cs @@ -1,4 +1,5 @@ -using BankContracts.BindingModels; +using BankBusinessLogic.MailWorker; +using BankContracts.BindingModels; using BankContracts.BusinessLogicsContracts; using Microsoft.AspNetCore.Mvc; @@ -10,11 +11,13 @@ namespace BankRestApi.Controllers { private readonly ILogger _logger; private readonly IReportLogic _logic; + private readonly AbstractMailWorker _mailWorker - public ReportController(ILogger logger, IReportLogic logic) + public ReportController(ILogger logger, IReportLogic logic, AbstractMailWorker mailWorker) { _logger = logger; _logic = logic; + _mailWorker = mailWorker; } [HttpPost] @@ -76,6 +79,7 @@ namespace BankRestApi.Controllers try { _logic.SaveTransfersWithdrawalsToPdfFile(model); + _mai } catch (Exception ex) {