Compare commits
2 Commits
8379870d93
...
a44b87601c
Author | SHA1 | Date | |
---|---|---|---|
a44b87601c | |||
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