From e52bbb71a125129bb17c27e782363cfc769a208f Mon Sep 17 00:00:00 2001 From: K Date: Tue, 30 Apr 2024 15:21:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=89=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BeautySalonBusinessLogic/BusinessLogic/OrderLogic.cs | 5 +---- .../ViewModels/ProcedureEvaluationViewModel.cs | 4 ++-- .../BeautySalonDatabaseImplement/BeautySalonDatabase.cs | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/BeautySalonView/BeautySalonBusinessLogic/BusinessLogic/OrderLogic.cs b/BeautySalonView/BeautySalonBusinessLogic/BusinessLogic/OrderLogic.cs index a285fee..d5e527f 100644 --- a/BeautySalonView/BeautySalonBusinessLogic/BusinessLogic/OrderLogic.cs +++ b/BeautySalonView/BeautySalonBusinessLogic/BusinessLogic/OrderLogic.cs @@ -21,10 +21,7 @@ namespace BeautySalonBusinessLogic.BusinessLogics _logger = logger; _orderStorage = orderStorage; } - public int GetNumberOfPages(int userId, int pageSize = 10) - { - return _orderStorage.GetNumberOfPages(userId, pageSize); - } + public List? ReadList(OrderSearchModel? model) { _logger.LogInformation("Order. OrderID:{Id}", model?.Id); diff --git a/BeautySalonView/BeautySalonContracts/ViewModels/ProcedureEvaluationViewModel.cs b/BeautySalonView/BeautySalonContracts/ViewModels/ProcedureEvaluationViewModel.cs index 6d57cc8..6116be8 100644 --- a/BeautySalonView/BeautySalonContracts/ViewModels/ProcedureEvaluationViewModel.cs +++ b/BeautySalonView/BeautySalonContracts/ViewModels/ProcedureEvaluationViewModel.cs @@ -7,9 +7,9 @@ public ProcedureEvaluationViewModel() { } - public ProcedureEvaluationViewModel(CosmeticViewModel car, int count) + public ProcedureEvaluationViewModel(CosmeticViewModel cosmetic, int count) { - Cosmetic = car; + Cosmetic = cosmetic; Count = count; } } diff --git a/BeautySalonView/BeautySalonDatabaseImplement/BeautySalonDatabase.cs b/BeautySalonView/BeautySalonDatabaseImplement/BeautySalonDatabase.cs index c1efdfc..21478fa 100644 --- a/BeautySalonView/BeautySalonDatabaseImplement/BeautySalonDatabase.cs +++ b/BeautySalonView/BeautySalonDatabaseImplement/BeautySalonDatabase.cs @@ -23,7 +23,7 @@ namespace BeautySalonDatabaseImplement base.OnConfiguring(optionsBuilder); } - + public virtual DbSet Orders { set; get; } public virtual DbSet LaborCosts { set; get; } public virtual DbSet Cosmetics { set; get; }