добавил зависимость
This commit is contained in:
parent
bee9621cba
commit
ca859d9bc5
@ -521,13 +521,13 @@ namespace BankClientApp.Controllers
|
||||
switch (format)
|
||||
{
|
||||
case "word":
|
||||
APIClient.PostRequest<ReportBindingModel>($"api/report/savetransferstoword", new ReportBindingModel
|
||||
APIClient.PostRequest($"api/report/savetransferstoword", new ReportBindingModel
|
||||
{
|
||||
SelectedCardIds = cards,
|
||||
});
|
||||
break;
|
||||
case "excel":
|
||||
APIClient.PostRequest<ReportBindingModel>($"api/report/savetransferstoword", new ReportBindingModel
|
||||
APIClient.PostRequest($"api/report/savetransferstoword", new ReportBindingModel
|
||||
{
|
||||
SelectedCardIds = cards,
|
||||
});
|
||||
|
@ -28,15 +28,16 @@ namespace BankRestApi.Controllers
|
||||
|
||||
}
|
||||
[HttpPost]
|
||||
public void SaveTransfersToWord(ReportBindingModel? model)
|
||||
public void SaveTransfersToWord(ReportBindingModel model)
|
||||
{
|
||||
try
|
||||
{
|
||||
_logic.(model);
|
||||
_logic.SaveTransfersToWordFile(model);
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
|
||||
_logger.LogError(ex, "Ошибка сохранения переводов в ворд");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
[HttpPost]
|
||||
|
@ -37,6 +37,8 @@ builder.Services.AddTransient<IRequestLogic, RequestLogic>();
|
||||
builder.Services.AddTransient<IWithdrawalStorage, WithdrawalStorage>();
|
||||
builder.Services.AddTransient<IWithdrawalLogic, WithdrawalLogic>();
|
||||
|
||||
builder.Services.AddTransient<IReportLogic, ReportLogic>();
|
||||
|
||||
builder.Services.AddTransient<AbstractSaveToPdf, SaveToPdf>();
|
||||
builder.Services.AddTransient<AbstractSaveToWord, SaveToWord>();
|
||||
builder.Services.AddTransient<AbstractSaveToExcel, SaveToExcel>();
|
||||
|
Loading…
Reference in New Issue
Block a user