лаба 7 не работает просчиталась но где

This commit is contained in:
Полина Чубыкина 2024-05-08 08:50:04 +04:00
parent 680de6f191
commit b6f0aac54b
4 changed files with 6 additions and 6 deletions

View File

@ -185,7 +185,7 @@ namespace ConfectioneryBusinessLogic.BusinessLogics
} }
MailSendInfoBindingModel mailModel; MailSendInfoBindingModel mailModel;
if (order.Status == OrderStatus.Принят) if (order.Status == OrderStatus.Выполняется)
{ {
mailModel = new MailSendInfoBindingModel mailModel = new MailSendInfoBindingModel
{ {

View File

@ -24,7 +24,7 @@ builder.Services.AddTransient<IPastryLogic, PastryLogic>();
builder.Services.AddTransient<IImplementerLogic, ImplementerLogic>(); builder.Services.AddTransient<IImplementerLogic, ImplementerLogic>();
builder.Services.AddTransient<IMessageInfoLogic, MessageInfoLogic>(); builder.Services.AddTransient<IMessageInfoLogic, MessageInfoLogic>();
builder.Services.AddTransient<AbstractMailWorker, MailKitWorker>(); builder.Services.AddSingleton<AbstractMailWorker, MailKitWorker>();
builder.Services.AddControllers(); builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle

View File

@ -11,6 +11,6 @@
"SmtpClientPort": "587", "SmtpClientPort": "587",
"PopHost": "pop.gmail.com", "PopHost": "pop.gmail.com",
"PopPort": "995", "PopPort": "995",
"MailLogin": "confectionery73@gmail.com", "MailLogin": "@gmail.com",
"MailPassword": "pastry" "MailPassword": "emlb bzfd efdo uknu"
} }

View File

@ -5,7 +5,7 @@
<add key="SmtpClientPort" value="587" /> <add key="SmtpClientPort" value="587" />
<add key="PopHost" value="pop.gmail.com" /> <add key="PopHost" value="pop.gmail.com" />
<add key="PopPort" value="995" /> <add key="PopPort" value="995" />
<add key="MailLogin" value="confectionery73@gmail.com" /> <add key="MailLogin" value="@gmail.com" />
<add key="MailPassword" value="pastry" /> <add key="MailPassword" value="emlb bzfd efdo uknu" />
</appSettings> </appSettings>
</configuration> </configuration>