From c70fddda2c0724c1588a8daa471c268cf5c6ff08 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 18:37:36 +0400 Subject: [PATCH 1/4] 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 + + + + + + + + From 40f96fe6c1d9f4227ab2238e6c5fad412e5740d2 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:08:06 +0400 Subject: [PATCH 2/4] + vendor --- .../BusinessLogicsContracts/IVendorLogic.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs new file mode 100644 index 0000000..821555a --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -0,0 +1,11 @@ +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IVendorLogic + { + List? ReadList(VendorSearchModel? model); + VendorViewModel? ReadElement(VendorSearchModel model); + bool Create(VendorBindingModel model); + bool Update(VendorBindingModel model); + bool Delete(VendorBindingModel model); + } +} From 14b3bbd20e6d062a2377e639598b2ce358bc3998 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:08:37 +0400 Subject: [PATCH 3/4] + links --- .../BusinessLogicsContracts/IVendorLogic.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs index 821555a..9309879 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -1,4 +1,8 @@ -namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +rHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts { public interface IVendorLogic { From 8e96befcd668df96220cfb12899b001b908ec638 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:09:02 +0400 Subject: [PATCH 4/4] links --- .../BusinessLogicsContracts/IVendorLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs index 9309879..5f12939 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -1,4 +1,4 @@ -rHardwareStoreContracts.BindingModels; +using HardwareStoreContracts.BindingModels; using ComputerHardwareStoreContracts.SearchModels; using ComputerHardwareStoreContracts.ViewModels;