From 2b867a6fa3b3898da7f104ef0cc99ac4e1f16ed0 Mon Sep 17 00:00:00 2001 From: bocchanskyy Date: Sun, 22 Sep 2024 17:02:18 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=82=D1=87=D0=B5=D1=82=D0=B8=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B7=D0=B0=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8,=20=D1=80=D0=B0=D0=B7=D0=B1=D0=B8=D1=80=D0=B0=D0=B5?= =?UTF-8?q?=D0=BC=D1=81=D1=8F=20=D1=81=20=D0=BF=D0=BE=D1=87=D1=82=D0=BE?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OfficePackage/HelperModels/PdfInfo.cs | 4 ++-- .../BindingModels/ReportBindingModel.cs | 4 ++-- .../BindingModels/ServiceBindingModel.cs | 2 +- BeautyStudio/StoreKeeperWebApp/Program.cs | 3 +-- BeautyStudio/StoreKeeperWebApp/Views/Home/Index.cshtml | 6 +++--- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/BeautyStudio/BeautyStudioBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs b/BeautyStudio/BeautyStudioBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs index 152ee12..c787da7 100644 --- a/BeautyStudio/BeautyStudioBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs +++ b/BeautyStudio/BeautyStudioBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs @@ -11,8 +11,8 @@ namespace BeautyStudioBusinessLogic.OfficePackage.HelperModels { public MemoryStream FileName { get; set; } = new(); public string Title { get; set; } = string.Empty; - public DateTime DateFrom { get; set; } - public DateTime DateTo { get; set; } + public DateTime DateFrom { get; set; } = DateTime.UtcNow; + public DateTime DateTo { get; set; } = DateTime.UtcNow; public List Services { get; set; } = new(); } } diff --git a/BeautyStudio/BeautyStudioContracts/BindingModels/ReportBindingModel.cs b/BeautyStudio/BeautyStudioContracts/BindingModels/ReportBindingModel.cs index 9667313..d51c826 100644 --- a/BeautyStudio/BeautyStudioContracts/BindingModels/ReportBindingModel.cs +++ b/BeautyStudio/BeautyStudioContracts/BindingModels/ReportBindingModel.cs @@ -10,8 +10,8 @@ namespace BeautyStudioContracts.BindingModels public class ReportBindingModel { public string FileName { get; set; } = string.Empty; - public DateTime? DateFrom { get; set; } - public DateTime? DateTo { get; set;} + public DateTime DateFrom { get; set; } = DateTime.UtcNow; + public DateTime DateTo { get; set; } = DateTime.UtcNow; } } diff --git a/BeautyStudio/BeautyStudioContracts/BindingModels/ServiceBindingModel.cs b/BeautyStudio/BeautyStudioContracts/BindingModels/ServiceBindingModel.cs index 9622270..8471d02 100644 --- a/BeautyStudio/BeautyStudioContracts/BindingModels/ServiceBindingModel.cs +++ b/BeautyStudio/BeautyStudioContracts/BindingModels/ServiceBindingModel.cs @@ -14,7 +14,7 @@ namespace BeautyStudioContracts.BindingModels public string ServiceName { get; set; } = string.Empty; public double ServicePrice { get; set; } public int StoreKeeperId { get; set; } - public DateTime DateCreate { get; set; } + public DateTime DateCreate { get; set; } = DateTime.UtcNow; public Dictionary ServiceProcedures { get; set; } = new(); } } diff --git a/BeautyStudio/StoreKeeperWebApp/Program.cs b/BeautyStudio/StoreKeeperWebApp/Program.cs index 0880e9d..f29e4bd 100644 --- a/BeautyStudio/StoreKeeperWebApp/Program.cs +++ b/BeautyStudio/StoreKeeperWebApp/Program.cs @@ -20,7 +20,6 @@ builder.Logging.AddLog4Net("log4net.config"); // Add services to the container. builder.Services.AddTransient(); builder.Services.AddTransient(); -builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); @@ -74,7 +73,7 @@ app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); - +app.UseSession(); app.UseAuthorization(); app.MapControllerRoute( diff --git a/BeautyStudio/StoreKeeperWebApp/Views/Home/Index.cshtml b/BeautyStudio/StoreKeeperWebApp/Views/Home/Index.cshtml index 41d8044..d0e00af 100644 --- a/BeautyStudio/StoreKeeperWebApp/Views/Home/Index.cshtml +++ b/BeautyStudio/StoreKeeperWebApp/Views/Home/Index.cshtml @@ -2,10 +2,10 @@ ViewData["Title"] = "HomePage"; }

- Vēni. Vidi. Vici. - Пришел. Увидел. Победил. + You came to the beauty studio. You got a service. You've won. + Ты пришел в салон красоты. Ты получил услугу. Ты победил.

-

Logo

+

Logo

\ No newline at end of file