diff --git a/FurnitureFactory/FurnitureBusinessLogic/BusinessLogics/OrdersLogic.cs b/FurnitureFactory/FurnitureBusinessLogic/BusinessLogics/OrdersLogic.cs new file mode 100644 index 0000000..971d0ae --- /dev/null +++ b/FurnitureFactory/FurnitureBusinessLogic/BusinessLogics/OrdersLogic.cs @@ -0,0 +1,35 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.BusinessLogicsContracts; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; + +namespace FurnitureBusinessLogic.BusinessLogics +{ + public class OrdersLogic : IOrdersLogic + { + public bool Create(OrdersBindingModel model) + { + throw new NotImplementedException(); + } + + public bool Delete(OrdersBindingModel model) + { + throw new NotImplementedException(); + } + + public OrdersViewModel? ReadElement(OrderSearchModel model) + { + throw new NotImplementedException(); + } + + public List? ReadList(OrderSearchModel? model) + { + throw new NotImplementedException(); + } + + public bool Update(OrdersBindingModel model) + { + throw new NotImplementedException(); + } + } +} diff --git a/FurnitureFactory/FurnitureBusinessLogic/FurnitureBusinessLogic.csproj b/FurnitureFactory/FurnitureBusinessLogic/FurnitureBusinessLogic.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/FurnitureFactory/FurnitureBusinessLogic/FurnitureBusinessLogic.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs index a6a46b3..c3640dd 100644 --- a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs @@ -1,15 +1,17 @@ -using FurnitureContracts.BindingModels; + + +using FurnitureContracts.BindingModels; using FurnitureContracts.SearchModels; using FurnitureContracts.ViewModel; namespace FurnitureContracts.BusinessLogicsContracts { - public interface IRoleLogic + public interface IOrderLogic { - List? ReadList(SalesSalonsSearchModel? model); - RoleViewModel? ReadElement(SalesSalonsSearchModel model); - bool Create(SalesSalonsBindingModel model); - bool Update(SalesSalonsBindingModel model); - bool Delete(SalesSalonsBindingModel model); + List? ReadList(OrderSearchModel? model); + OrdersViewModel? ReadElement(OrderSearchModel model); + bool Create(OrdersBindingModel model); + bool Update(OrdersBindingModel model); + bool Delete(OrdersBindingModel model); } } diff --git a/FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs b/FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs index f664c31..0d90c87 100644 --- a/FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs +++ b/FurnitureFactory/FurnitureContracts/StoragesContracts/ISalesSalonsStorage.cs @@ -6,16 +6,16 @@ namespace FurnitureContracts.StoragesContracts { public interface ISalesSalonsStorage { - List GetFullList(); + List GetFullList(); - List GetFilteredList(SalesSalonsSearchModel model); + List GetFilteredList(SalesSalonsSearchModel model); - SalesSalonsModel? GetElement(SalesSalonsSearchModel model); + SalesSalonsViewModel? GetElement(SalesSalonsSearchModel model); - SalesSalonsModel? Insert(SalesSalonsBindingModel model); + SalesSalonsViewModel? Insert(SalesSalonsBindingModel model); - SalesSalonsModel? Update(SalesSalonsBindingModel model); + SalesSalonsViewModel? Update(SalesSalonsBindingModel model); - SalesSalonsModel? Delete(SalesSalonsBindingModel model); + SalesSalonsViewModel? Delete(SalesSalonsBindingModel model); } } diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs index 8ccdee8..e2f0189 100644 --- a/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs +++ b/FurnitureFactory/FurnitureContracts/ViewModel/SalesSalonsViewModel.cs @@ -3,7 +3,7 @@ using System.ComponentModel; namespace FurnitureContracts.ViewModel { - public class SalesSalonsModel : ISalesSalonsModel + public class SalesSalonsViewModel : ISalesSalonsModel { [DisplayName("Название")] public string Name { get; set; } = string.Empty; diff --git a/FurnitureFactory/FurnitureFactory.sln b/FurnitureFactory/FurnitureFactory.sln index 6103753..9d58e7e 100644 --- a/FurnitureFactory/FurnitureFactory.sln +++ b/FurnitureFactory/FurnitureFactory.sln @@ -9,6 +9,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureFactoryDataModels" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FurnitureContracts", "FurnitureContracts\FurnitureContracts.csproj", "{E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FurnitureBusinessLogic", "FurnitureBusinessLogic\FurnitureBusinessLogic.csproj", "{8FD61B4B-3F75-4024-BD47-E63B54E9D95E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -27,6 +29,10 @@ Global {E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Debug|Any CPU.Build.0 = Debug|Any CPU {E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Release|Any CPU.ActiveCfg = Release|Any CPU {E269E4B8-5EAD-4BB2-A8BA-44FE9D202FB6}.Release|Any CPU.Build.0 = Release|Any CPU + {8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8FD61B4B-3F75-4024-BD47-E63B54E9D95E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE