From a2f1221c34a0d5ca14f71894e34f364f3532ec06 Mon Sep 17 00:00:00 2001 From: Allllen4a Date: Wed, 24 Apr 2024 14:02:00 +0400 Subject: [PATCH] =?UTF-8?q?SearchModels=20=D0=B8=20StoragesContracts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SearchModels/ClientSearchModel.cs | 11 +++++++++ .../SearchModels/EvaluationSearchModel.cs | 10 ++++++++ .../SearchModels/OrderSearchModel.cs | 16 +++++++++++++ .../SearchModels/ProcedureSearchModel.cs | 11 +++++++++ .../StoragesContracts/IClientStorage.cs | 21 +++++++++++++++++ .../StoragesContracts/IEvaluationStorage.cs | 23 +++++++++++++++++++ .../StoragesContracts/IOrderStorage.cs | 23 +++++++++++++++++++ .../StoragesContracts/IProcedureStorage.cs | 22 ++++++++++++++++++ 8 files changed, 137 insertions(+) create mode 100644 BeautySalonView/BeautySalonContracts/SearchModels/ClientSearchModel.cs create mode 100644 BeautySalonView/BeautySalonContracts/SearchModels/EvaluationSearchModel.cs create mode 100644 BeautySalonView/BeautySalonContracts/SearchModels/OrderSearchModel.cs create mode 100644 BeautySalonView/BeautySalonContracts/SearchModels/ProcedureSearchModel.cs create mode 100644 BeautySalonView/BeautySalonContracts/StoragesContracts/IClientStorage.cs create mode 100644 BeautySalonView/BeautySalonContracts/StoragesContracts/IEvaluationStorage.cs create mode 100644 BeautySalonView/BeautySalonContracts/StoragesContracts/IOrderStorage.cs create mode 100644 BeautySalonView/BeautySalonContracts/StoragesContracts/IProcedureStorage.cs diff --git a/BeautySalonView/BeautySalonContracts/SearchModels/ClientSearchModel.cs b/BeautySalonView/BeautySalonContracts/SearchModels/ClientSearchModel.cs new file mode 100644 index 0000000..ea2540f --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/SearchModels/ClientSearchModel.cs @@ -0,0 +1,11 @@ +namespace BeautySalonContracts.SearchModels +{ + public class ClientSearchModel + { + public int? Id { get; set; } + public string? ClientLogin { get; set; } + public string? ClientFIO { get; set; } + public string? ClientEmail { get; set; } + public string? ClientPassword { get; set; } + } +} diff --git a/BeautySalonView/BeautySalonContracts/SearchModels/EvaluationSearchModel.cs b/BeautySalonView/BeautySalonContracts/SearchModels/EvaluationSearchModel.cs new file mode 100644 index 0000000..cf3ff71 --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/SearchModels/EvaluationSearchModel.cs @@ -0,0 +1,10 @@ +namespace BeautySalonContracts.SearchModels +{ + public class EvaluationSearchModel + { + public int? Id { get; set; } + public int? ClientId { get; set; } + public int? PageNumber { get; set; } + public int? PageSize { get; set; } + } +} diff --git a/BeautySalonView/BeautySalonContracts/SearchModels/OrderSearchModel.cs b/BeautySalonView/BeautySalonContracts/SearchModels/OrderSearchModel.cs new file mode 100644 index 0000000..322bdea --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/SearchModels/OrderSearchModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonContracts.SearchModels +{ + public class OrderSearchModel + { + public int? Id { get; set; } + public DateTime? OrderDate { get; set; } + public int? ClientId { get; set; } + + } +} diff --git a/BeautySalonView/BeautySalonContracts/SearchModels/ProcedureSearchModel.cs b/BeautySalonView/BeautySalonContracts/SearchModels/ProcedureSearchModel.cs new file mode 100644 index 0000000..2dfdfde --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/SearchModels/ProcedureSearchModel.cs @@ -0,0 +1,11 @@ +namespace BeautySalonContracts.SearchModels +{ + public class ProcedureSearchModel + { + public int? Id { get; set; } + public string? ProcedureName { get; set; } + public int? ClientId { get; set; } + public int? PageNumber { get; set; } + public int? PageSize { get; set; } + } +} diff --git a/BeautySalonView/BeautySalonContracts/StoragesContracts/IClientStorage.cs b/BeautySalonView/BeautySalonContracts/StoragesContracts/IClientStorage.cs new file mode 100644 index 0000000..a4a64ff --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/StoragesContracts/IClientStorage.cs @@ -0,0 +1,21 @@ +using BeautySalonContracts.BindingModels; +using BeautySalonContracts.SearchModels; +using BeautySalonContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonContracts.StoragesContracts +{ + public interface IClientStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + ClientViewModel? GetElement(ClientSearchModel model); + ClientViewModel? Insert(ClientBindingModel model); + ClientViewModel? Update(ClientBindingModel model); + ClientViewModel? Delete(ClientBindingModel model); + } +} diff --git a/BeautySalonView/BeautySalonContracts/StoragesContracts/IEvaluationStorage.cs b/BeautySalonView/BeautySalonContracts/StoragesContracts/IEvaluationStorage.cs new file mode 100644 index 0000000..5ffb7e8 --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/StoragesContracts/IEvaluationStorage.cs @@ -0,0 +1,23 @@ +using BeautySalonContracts.BindingModels; +using BeautySalonContracts.SearchModels; +using BeautySalonContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonContracts.StoragesContracts +{ + public interface IEvaluationStorage + { + List GetFullList(); + List GetFilteredList(EvaluationSearchModel model); + EvaluationViewModel? GetElement(EvaluationSearchModel model); + EvaluationViewModel? Insert(EvaluationBindingModel model); + EvaluationViewModel? Update(EvaluationBindingModel model); + EvaluationViewModel? Delete(EvaluationBindingModel model); + int GetNumberOfPages(int userId, int pageSize); + + } +} diff --git a/BeautySalonView/BeautySalonContracts/StoragesContracts/IOrderStorage.cs b/BeautySalonView/BeautySalonContracts/StoragesContracts/IOrderStorage.cs new file mode 100644 index 0000000..63e59eb --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/StoragesContracts/IOrderStorage.cs @@ -0,0 +1,23 @@ +using BeautySalonContracts.BindingModels; +using BeautySalonContracts.SearchModels; +using BeautySalonContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonContracts.StoragesContracts +{ + public interface IOrderStorage + { + List GetFullList(); + List GetFilteredList(OrderSearchModel model); + OrderViewModel? GetElement(OrderSearchModel model); + OrderViewModel? Insert(OrderBindingModel model); + OrderViewModel? Update(OrderBindingModel model); + OrderViewModel? Delete(OrderBindingModel model); + int GetNumberOfPages(int userId, int pageSize); + + } +} diff --git a/BeautySalonView/BeautySalonContracts/StoragesContracts/IProcedureStorage.cs b/BeautySalonView/BeautySalonContracts/StoragesContracts/IProcedureStorage.cs new file mode 100644 index 0000000..18c38e4 --- /dev/null +++ b/BeautySalonView/BeautySalonContracts/StoragesContracts/IProcedureStorage.cs @@ -0,0 +1,22 @@ +using BeautySalonContracts.BindingModels; +using BeautySalonContracts.SearchModels; +using BeautySalonContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonContracts.StoragesContracts +{ + public interface IProcedureStorage + { + List GetFullList(); + List GetFilteredList(ProcedureSearchModel model); + ProcedureViewModel? GetElement(ProcedureSearchModel model); + ProcedureViewModel? Insert(ProcedureBindingModel model); + ProcedureViewModel? Update(ProcedureBindingModel model); + ProcedureViewModel? Delete(ProcedureBindingModel model); + int GetNumberOfPages(int userId, int pageSize); + } +}