Compare commits

...

2 Commits

View File

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