From c70fddda2c0724c1588a8daa471c268cf5c6ff08 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 18:37:36 +0400 Subject: [PATCH] business logicc ontracts --- .../BusinessLogicsContracts/IComponentLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IOrderLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IProductLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IStoreKeeperLogic.cs | 15 +++++++++++++++ .../ComputerHardwareStoreContracts.csproj | 8 ++++++++ 5 files changed, 68 insertions(+) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs new file mode 100644 index 0000000..49f3039 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IComponentLogic + { + List? ReadList(ComponentSearchModel? model); + ComponentViewModel? ReadElement(ComponentSearchModel model); + bool Create(ComponentBindingModel model); + bool Update(ComponentBindingModel model); + bool Delete(ComponentBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs new file mode 100644 index 0000000..fc0dc8e --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IOrderLogic + { + List? ReadList(OrderSearchModel? model); + bool CreateOrder(OrderBindingModel model); + bool TakeOrderInWork(OrderBindingModel model); + bool FinishOrder(OrderBindingModel model); + bool DeliveryOrder(OrderBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs new file mode 100644 index 0000000..59f4cdd --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IProductLogic + { + List? ReadList(ProductSearchModel? model); + ProductViewModel? ReadElement(ProductSearchModel model); + bool Create(ProductBindingModel model); + bool Update(ProductBindingModel model); + bool Delete(ProductBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs new file mode 100644 index 0000000..b7a2fc0 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IStoreKeeperLogic + { + List? ReadList(StoreKeeperSearchModel? model); + StoreKeeperViewModel? ReadElement(StoreKeeperSearchModel model); + bool Create(StoreKeeperBindingModel model); + bool Update(StoreKeeperBindingModel model); + bool Delete(StoreKeeperBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj index fa71b7a..9f4545e 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj @@ -6,4 +6,12 @@ enable + + + + + + + +