From c73cd96853b6781ee57d751418d9a9a45e2a8cae Mon Sep 17 00:00:00 2001 From: FLARJ <122087628+FLARJ@users.noreply.github.com> Date: Wed, 5 Apr 2023 23:32:14 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B8=20=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20StoragesContracts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessLogicsContracts/IHeadsetLogic.cs | 4 ++-- .../BusinessLogicsContracts/IOrdersLogic.cs | 10 ++++----- .../BusinessLogicsContracts/IRoleLogic.cs | 14 ++++++------- .../StoragesContracts/IHeadsetStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/IOrdersStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/IRoleStorage.cs | 21 +++++++++++++++++++ .../StoragesContracts/ISalesSalonsStorage.cs | 21 +++++++++++++++++++ .../ViewModel/SalesSalonsViewModel.cs | 4 ++-- 8 files changed, 100 insertions(+), 16 deletions(-) create mode 100644 FurnitureFactory/FurnitureContracts/StoragesContracts/IHeadsetStorage.cs create mode 100644 FurnitureFactory/FurnitureContracts/StoragesContracts/IOrdersStorage.cs create mode 100644 FurnitureFactory/FurnitureContracts/StoragesContracts/IRoleStorage.cs create mode 100644 FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetLogic.cs index b9a8812..58ab138 100644 --- a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetLogic.cs +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetLogic.cs @@ -4,9 +4,9 @@ using FurnitureContracts.ViewModel; namespace FurnitureContracts.BusinessLogicsContracts { - public interface IOrdersLogic + public interface IHeadsetLogic { - List? ReadList(OrderSearchModel? model); + List? ReadList(HeadsetSearchModel? model); OrdersViewModel? ReadElement(OrderSearchModel model); bool Create(OrdersBindingModel model); bool Update(OrdersBindingModel model); diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs index cd36f1c..a6a46b3 100644 --- a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs @@ -6,10 +6,10 @@ namespace FurnitureContracts.BusinessLogicsContracts { public interface IRoleLogic { - List? ReadList(RoleSearchModel? model); - RoleViewModel? ReadElement(RoleSearchModel model); - bool Create(RoleBindingModel model); - bool Update(RoleBindingModel model); - bool Delete(RoleBindingModel model); + List? ReadList(SalesSalonsSearchModel? model); + RoleViewModel? ReadElement(SalesSalonsSearchModel model); + bool Create(SalesSalonsBindingModel model); + bool Update(SalesSalonsBindingModel model); + bool Delete(SalesSalonsBindingModel model); } } diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IRoleLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IRoleLogic.cs index b9a8812..486ad47 100644 --- a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IRoleLogic.cs +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IRoleLogic.cs @@ -4,12 +4,12 @@ using FurnitureContracts.ViewModel; namespace FurnitureContracts.BusinessLogicsContracts { - public interface IOrdersLogic + public interface IRoleLogic { - List? ReadList(OrderSearchModel? model); - OrdersViewModel? ReadElement(OrderSearchModel model); - bool Create(OrdersBindingModel model); - bool Update(OrdersBindingModel model); - bool Delete(OrdersBindingModel model); + List? ReadList(SalesSalonsSearchModel? model); + RoleViewModel? ReadElement(SalesSalonsSearchModel model); + bool Create(SalesSalonsBindingModel model); + bool Update(SalesSalonsBindingModel model); + bool Delete(SalesSalonsBindingModel model); } -} +} \ No newline at end of file diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/IHeadsetStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/IHeadsetStorage.cs new file mode 100644 index 0000000..dae3499 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/IHeadsetStorage.cs @@ -0,0 +1,21 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; + +namespace FurnitureContracts.StoragesContracts +{ + public interface IHeadsetStorage + { + List GetFullList(); + + List GetFilteredList(HeadsetSearchModel model); + + HeadsetViewModel? GetElement(HeadsetSearchModel model); + + HeadsetViewModel? Insert(HeadsetBindingModel model); + + HeadsetViewModel? Update(HeadsetBindingModel model); + + HeadsetViewModel? Delete(HeadsetBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/IOrdersStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/IOrdersStorage.cs new file mode 100644 index 0000000..b357307 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/IOrdersStorage.cs @@ -0,0 +1,21 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; + +namespace FurnitureContracts.StoragesContracts +{ + public interface IOrdersStorage + { + List GetFullList(); + + List GetFilteredList(OrderSearchModel model); + + OrdersViewModel? GetElement(OrderSearchModel model); + + OrdersViewModel? Insert(OrdersBindingModel model); + + OrdersViewModel? Update(OrdersBindingModel model); + + OrdersViewModel? Delete(OrdersBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/IRoleStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/IRoleStorage.cs new file mode 100644 index 0000000..f4e4c5f --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/IRoleStorage.cs @@ -0,0 +1,21 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; + +namespace FurnitureContracts.StoragesContracts +{ + public interface IRoleStorage + { + List GetFullList(); + + List GetFilteredList(RoleSearchModel model); + + RoleViewModel? GetElement(RoleSearchModel model); + + RoleViewModel? Insert(RoleBindingModel model); + + RoleViewModel? Update(RoleBindingModel model); + + RoleViewModel? Delete(RoleBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs new file mode 100644 index 0000000..f664c31 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs @@ -0,0 +1,21 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; + +namespace FurnitureContracts.StoragesContracts +{ + public interface ISalesSalonsStorage + { + List GetFullList(); + + List GetFilteredList(SalesSalonsSearchModel model); + + SalesSalonsModel? GetElement(SalesSalonsSearchModel model); + + SalesSalonsModel? Insert(SalesSalonsBindingModel model); + + SalesSalonsModel? Update(SalesSalonsBindingModel model); + + SalesSalonsModel? Delete(SalesSalonsBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs index 0f99057..8ccdee8 100644 --- a/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs +++ b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs @@ -3,11 +3,11 @@ using System.ComponentModel; namespace FurnitureContracts.ViewModel { - public class SalesSalonsViewModel : ISalesSalonsModel + public class SalesSalonsModel : ISalesSalonsModel { [DisplayName("Название")] public string Name { get; set; } = string.Empty; - [DisplayName("Адрес")] + [DisplayName("Адресс")] public string Address { get; set; } = string.Empty; public Dictionary OrdersId { get; set; } public int Id { get; set; }