This commit is contained in:
Artyom_Yashin 2024-05-27 02:01:45 +04:00
parent 9628e5f442
commit b3770d4a65

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