Фикс
This commit is contained in:
commit
9628e5f442
@ -11,7 +11,7 @@ namespace BankRestApi.Controllers
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
private readonly IReportLogic _logic;
|
||||
private readonly AbstractMailWorker _mailWorker
|
||||
private readonly AbstractMailWorker _mailWorker;
|
||||
|
||||
public ReportController(ILogger<RequestController> logger, IReportLogic logic, AbstractMailWorker mailWorker)
|
||||
{
|
||||
@ -79,7 +79,12 @@ namespace BankRestApi.Controllers
|
||||
try
|
||||
{
|
||||
_logic.SaveTransfersWithdrawalsToPdfFile(model);
|
||||
_mai
|
||||
_mailWorker.MailSendAsync(new MailSendInfoBindingModel
|
||||
{
|
||||
MailAddress = model.Email!,
|
||||
Subject = "Отчет по животным",
|
||||
Text = "Лови"
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user