From 1ac6648115d9a9b329af3b3dc29ab3c433adc620 Mon Sep 17 00:00:00 2001 From: Ismailov_Rovshan Date: Wed, 5 Apr 2023 23:14:46 +0400 Subject: [PATCH] Logic --- ...eModel.cs => HeadsetModuleBindingModel.cs} | 2 +- .../IFurnitureLogic.cs | 20 +++++++++++++++++++ .../IHeadsetModuleLogic.cs | 20 +++++++++++++++++++ .../BusinessLogicsContracts/IMaterialLogic.cs | 20 +++++++++++++++++++ .../BusinessLogicsContracts/IOrdersLogic.cs | 2 +- .../BusinessLogicsContracts/IUserLogic.cs | 20 +++++++++++++++++++ 6 files changed, 82 insertions(+), 2 deletions(-) rename FurnitureFactory/FurnitureContracts/BindingModels/{HeadsetModuleModel.cs => HeadsetModuleBindingModel.cs} (85%) create mode 100644 FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IFurnitureLogic.cs create mode 100644 FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetModuleLogic.cs create mode 100644 FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IMaterialLogic.cs create mode 100644 FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IUserLogic.cs diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleBindingModel.cs similarity index 85% rename from FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleModel.cs rename to FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleBindingModel.cs index 9c2b8cc..67fe0d6 100644 --- a/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleModel.cs +++ b/FurnitureFactory/FurnitureContracts/BindingModels/HeadsetModuleBindingModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace FurnitureContracts.BindingModels { - internal class HeadsetModuleModel : IHeadsetModuleModel + internal class HeadsetModuleBindingModel : IHeadsetModuleModel { public string Style { get; set; } = string.Empty; diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IFurnitureLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IFurnitureLogic.cs new file mode 100644 index 0000000..83c6d07 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IFurnitureLogic.cs @@ -0,0 +1,20 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.BusinessLogicsContracts +{ + interface IFurnitureLogic + { + List? ReadList(FurnitureSearchModel? model); + FurnitureViewModel? ReadElement(FurnitureSearchModel model); + bool Create(FurnitureBindingModel model); + bool Update(FurnitureBindingModel model); + bool Delete(FurnitureBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetModuleLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetModuleLogic.cs new file mode 100644 index 0000000..fcc064b --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IHeadsetModuleLogic.cs @@ -0,0 +1,20 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.BusinessLogicsContracts +{ + internal interface IHeadsetModuleLogic + { + List? ReadList(HeadsetModuleSearchModel? model); + HeadsetModuleViewModel? ReadElement(HeadsetModuleSearchModel model); + bool Create(HeadsetModuleBindingModel model); + bool Update(HeadsetModuleBindingModel model); + bool Delete(HeadsetModuleBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IMaterialLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IMaterialLogic.cs new file mode 100644 index 0000000..1712c95 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IMaterialLogic.cs @@ -0,0 +1,20 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.BusinessLogicsContracts +{ + interface IMaterialLogic + { + List? ReadList(MaterialSearchModel? model); + MaterialViewModel? ReadElement(MaterialSearchModel model); + bool Create(MaterialBindingModel model); + bool Update(MaterialBindingModel model); + bool Delete(MaterialBindingModel model); + } +} diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs index 8bd95b2..26136ad 100644 --- a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IOrdersLogic.cs @@ -4,7 +4,7 @@ using FurnitureContracts.ViewModel; namespace FurnitureContracts.BusinessLogicsContracts { - public class IOrdersLogic + interface IOrdersLogic { List? ReadList(OrderSearchModel? model); OrdersViewModel? ReadElement(OrderSearchModel model); diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IUserLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IUserLogic.cs new file mode 100644 index 0000000..e13c124 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IUserLogic.cs @@ -0,0 +1,20 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.SearchModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.BusinessLogicsContracts +{ + interface IUserLogic + { + List? ReadList(UserSearchModel? model); + UserViewModel? ReadElement(UserSearchModel model); + bool Create(UserBindingModel model); + bool Update(UserBindingModel model); + bool Delete(UserBindingModel model); + } +}