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; }