diff --git a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs index f0deebd..7c7bdf4 100644 --- a/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs +++ b/Bank/BankBusinessLogic/BusinessLogic/ReportLogic.cs @@ -54,7 +54,7 @@ namespace BankBusinessLogic.BusinessLogic }); } - public void SaveRequestsComponentsToExcelFile(ReportBindingModel model) + public void SaveRequestsToExcelFile(ReportBindingModel model) { _saveToExcel.CreateRequestsDoc(new ExcelInfo { diff --git a/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs b/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs index 5756725..8247263 100644 --- a/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs +++ b/Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs @@ -1,4 +1,5 @@ -using BankContracts.SearchModels; +using BankContracts.BindingModels; +using BankContracts.SearchModels; using BankContracts.ViewModels; using System; using System.Collections.Generic; @@ -14,5 +15,13 @@ namespace BankContracts.BusinessLogicsContracts List CreateReportOperationsRequests(CardSearchModel model); List CreateReportRequests(AccountSearchModel model); List CreateReportTransfersWithdrawals(AccountSearchModel model); - } + void SaveRequestsToExcelFile(ReportBindingModel model); + void SaveRequestsToWordFile(ReportBindingModel model); + void SaveTransfersToWordFile(ReportBindingModel model); + void SaveTransfersToExcelFile(ReportBindingModel model); + void SaveOperationsRequestsToPdfFile(ReportBindingModel model); + void SaveTransfersWithdrawalsToPdfFile(ReportBindingModel model); + + + } } diff --git a/Bank/BankRestApi/Controllers/ReportController.cs b/Bank/BankRestApi/Controllers/ReportController.cs index 7682a05..6d1cd25 100644 --- a/Bank/BankRestApi/Controllers/ReportController.cs +++ b/Bank/BankRestApi/Controllers/ReportController.cs @@ -30,7 +30,14 @@ namespace BankRestApi.Controllers [HttpPost] public void SaveTransfersToWord(ReportBindingModel? model) { + try + { + _logic.(model); + } + catch(Exception ex) + { + } } [HttpPost] public void SaveTransfersToExcel(ReportBindingModel? model)