From 8aefc24b6a93bfc5f6731aaf717d4296f2b0150b Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 29 May 2024 15:47:18 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BB=D0=B8=D1=88=D0=BA=D0=BE=D0=BC=20?= =?UTF-8?q?=D1=81=D0=B8=D0=BD=D0=B5=D0=B5=20=D0=BD=D0=B5=D0=B10..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComputerHardwareStoreREST/Program.cs | 21 ++++++++++--------- .../Views/Home/ReportOnSite.cshtml | 5 +++++ 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 ComputerHardwareStore/StoreKeeperClient/Views/Home/ReportOnSite.cshtml diff --git a/ComputerHardwareStore/ComputerHardwareStoreREST/Program.cs b/ComputerHardwareStore/ComputerHardwareStoreREST/Program.cs index abbc85e..46213d2 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreREST/Program.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreREST/Program.cs @@ -1,4 +1,5 @@ using ComputerHardwareStoreBusinessLogic.BusinessLogic; +using ComputerHardwareStoreContracts.BindingModels; using ComputerHardwareStoreContracts.BusinessLogicsContracts; using ComputerHardwareStoreContracts.StorageContracts; using ComputerHardwareStoreDatabaseImplement.Implements; @@ -35,16 +36,16 @@ builder.Services.AddTransient(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); var app = builder.Build(); -var mailSender = app.Services.GetService(); -mailSender?.MailConfig(new MailConfigBindingModel -{ -MailLogin = builder.Configuration?.GetSection("MailLogin")?.Value?.ToString() ?? string.Empty, -MailPassword = builder.Configuration?.GetSection("MailPassword")?.Value?.ToString() ?? string.Empty, -SmtpClientHost = builder.Configuration?.GetSection("SmtpClientHost")?.Value?.ToString() ?? string.Empty, -SmtpClientPort = Convert.ToInt32(builder.Configuration?.GetSection("SmtpClientPort")?.Value?.ToString()), -PopHost = builder.Configuration?.GetSection("PopHost")?.Value?.ToString() ?? string.Empty, -PopPort = Convert.ToInt32(builder.Configuration?.GetSection("PopPort")?.Value?.ToString()) -}); +//var mailSender = app.Services.GetService(); +//mailSender?.MailConfig(new MailConfigBindingModel +//{ +//MailLogin = builder.Configuration?.GetSection("MailLogin")?.Value?.ToString() ?? string.Empty, +//MailPassword = builder.Configuration?.GetSection("MailPassword")?.Value?.ToString() ?? string.Empty, +//SmtpClientHost = builder.Configuration?.GetSection("SmtpClientHost")?.Value?.ToString() ?? string.Empty, +//SmtpClientPort = Convert.ToInt32(builder.Configuration?.GetSection("SmtpClientPort")?.Value?.ToString()), +//PopHost = builder.Configuration?.GetSection("PopHost")?.Value?.ToString() ?? string.Empty, +//PopPort = Convert.ToInt32(builder.Configuration?.GetSection("PopPort")?.Value?.ToString()) +//}); // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { diff --git a/ComputerHardwareStore/StoreKeeperClient/Views/Home/ReportOnSite.cshtml b/ComputerHardwareStore/StoreKeeperClient/Views/Home/ReportOnSite.cshtml new file mode 100644 index 0000000..e1dd794 --- /dev/null +++ b/ComputerHardwareStore/StoreKeeperClient/Views/Home/ReportOnSite.cshtml @@ -0,0 +1,5 @@ +@* + For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 +*@ +@{ +}