Фикс
This commit is contained in:
parent
9628e5f442
commit
b3770d4a65
@ -74,6 +74,25 @@ namespace BankRestApi.Controllers
|
||||
}
|
||||
}
|
||||
[HttpPost]
|
||||
public void SendOperationsRequestsToEmail(ReportBindingModel model)
|
||||
{
|
||||
try
|
||||
{
|
||||
_logic.SaveOperationsRequestsToPdfFile(model);
|
||||
_mailWorker.MailSendAsync(new MailSendInfoBindingModel
|
||||
{
|
||||
MailAddress = model.Email!,
|
||||
Subject = "Отчет по животным",
|
||||
Text = "Лови"
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, "Ошибка сохранения переводов в ворд");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
[HttpPost]
|
||||
public void SendTransfersWithdrawalsToEmail(ReportBindingModel model)
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user