diff --git a/Confectionery/ConfectioneryBusinessLogic/BusinessLogics/OrderLogic.cs b/Confectionery/ConfectioneryBusinessLogic/BusinessLogics/OrderLogic.cs index 95070e5..ff655a9 100644 --- a/Confectionery/ConfectioneryBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/Confectionery/ConfectioneryBusinessLogic/BusinessLogics/OrderLogic.cs @@ -185,7 +185,7 @@ namespace ConfectioneryBusinessLogic.BusinessLogics } MailSendInfoBindingModel mailModel; - if (order.Status == OrderStatus.Принят) + if (order.Status == OrderStatus.Выполняется) { mailModel = new MailSendInfoBindingModel { diff --git a/Confectionery/ConfectioneryRestApi/Program.cs b/Confectionery/ConfectioneryRestApi/Program.cs index a4855ad..fe4e072 100644 --- a/Confectionery/ConfectioneryRestApi/Program.cs +++ b/Confectionery/ConfectioneryRestApi/Program.cs @@ -24,7 +24,7 @@ builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); -builder.Services.AddTransient(); +builder.Services.AddSingleton(); builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle diff --git a/Confectionery/ConfectioneryRestApi/appsettings.json b/Confectionery/ConfectioneryRestApi/appsettings.json index 51c6827..55c2376 100644 --- a/Confectionery/ConfectioneryRestApi/appsettings.json +++ b/Confectionery/ConfectioneryRestApi/appsettings.json @@ -11,6 +11,6 @@ "SmtpClientPort": "587", "PopHost": "pop.gmail.com", "PopPort": "995", - "MailLogin": "confectionery73@gmail.com", - "MailPassword": "pastry" + "MailLogin": "@gmail.com", + "MailPassword": "emlb bzfd efdo uknu" } diff --git a/Confectionery/ConfectioneryView/App.config b/Confectionery/ConfectioneryView/App.config index 58e4123..c9cd9c9 100644 --- a/Confectionery/ConfectioneryView/App.config +++ b/Confectionery/ConfectioneryView/App.config @@ -5,7 +5,7 @@ - - + + \ No newline at end of file