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