Compare commits

...

2 Commits

3 changed files with 19 additions and 3 deletions

View File

@ -54,7 +54,7 @@ namespace BankBusinessLogic.BusinessLogic
});
}
public void SaveRequestsComponentsToExcelFile(ReportBindingModel model)
public void SaveRequestsToExcelFile(ReportBindingModel model)
{
_saveToExcel.CreateRequestsDoc(new ExcelInfo
{

View File

@ -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<ReportOperationsRequestsViewModel> CreateReportOperationsRequests(CardSearchModel model);
List<ReportRequestsViewModel> CreateReportRequests(AccountSearchModel model);
List<ReportTransfersWithdrawalsViewModel> 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);
}
}

View File

@ -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)