From 3136067777ac525b05eb1da49095f5058c08dcd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9F=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=D0=BF=D0=BE=D0=B2?= Date: Wed, 20 Nov 2024 00:27:36 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=20=D0=BA?= =?UTF-8?q?=D0=BB=D0=B0=D1=81=D1=81=D1=8B=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA?= =?UTF-8?q?=D0=B8,=20=D0=BD=D1=83=D0=B6=D0=BD=D0=BE=20=D1=80=D0=B5=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InternetShopLogics.csproj | 4 ++ .../InternetShopLogics/Logics/OrderLogic.cs | 43 +++++++++++++++++++ .../InternetShopLogics/Logics/ProductLogic.cs | 35 +++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 InternetShop/InternetShopLogics/Logics/OrderLogic.cs create mode 100644 InternetShop/InternetShopLogics/Logics/ProductLogic.cs diff --git a/InternetShop/InternetShopLogics/InternetShopLogics.csproj b/InternetShop/InternetShopLogics/InternetShopLogics.csproj index fa71b7a..b59b415 100644 --- a/InternetShop/InternetShopLogics/InternetShopLogics.csproj +++ b/InternetShop/InternetShopLogics/InternetShopLogics.csproj @@ -6,4 +6,8 @@ enable + + + + diff --git a/InternetShop/InternetShopLogics/Logics/OrderLogic.cs b/InternetShop/InternetShopLogics/Logics/OrderLogic.cs new file mode 100644 index 0000000..70d96c1 --- /dev/null +++ b/InternetShop/InternetShopLogics/Logics/OrderLogic.cs @@ -0,0 +1,43 @@ +using InternetShopContracts.DataBindingModels; +using InternetShopContracts.DataSearchModels; +using InternetShopContracts.DataViewModels; +using InternetShopContracts.LogicsContracts; +using InternetShopContracts.StorageContracts; + +namespace InternetShopLogics.Logics +{ + public class OrderLogic : IOrderLogic + { + private IOrderStorage _orderStorage; + + public OrderLogic(IOrderStorage orderStorage) + { + _orderStorage = orderStorage; + } + + public bool Create(OrderBindingModel model) + { + throw new NotImplementedException(); + } + + public bool Delete(OrderBindingModel model) + { + throw new NotImplementedException(); + } + + public OrderViewModel? ReadElement(OrderSearchModel model) + { + throw new NotImplementedException(); + } + + public List ReadList(OrderSearchModel? model = null) + { + throw new NotImplementedException(); + } + + public bool Update(OrderBindingModel model) + { + throw new NotImplementedException(); + } + } +} diff --git a/InternetShop/InternetShopLogics/Logics/ProductLogic.cs b/InternetShop/InternetShopLogics/Logics/ProductLogic.cs new file mode 100644 index 0000000..6bdaf2d --- /dev/null +++ b/InternetShop/InternetShopLogics/Logics/ProductLogic.cs @@ -0,0 +1,35 @@ +using InternetShopContracts.DataBindingModels; +using InternetShopContracts.DataSearchModels; +using InternetShopContracts.DataViewModels; +using InternetShopContracts.LogicsContracts; + +namespace InternetShopLogics.Logics +{ + public class ProductLogic : IProductLogic + { + public bool Create(ProductBindingModel model) + { + throw new NotImplementedException(); + } + + public bool Delete(ProductBindingModel model) + { + throw new NotImplementedException(); + } + + public ProductViewModel? ReadElement(ProductSearchModel model) + { + throw new NotImplementedException(); + } + + public List ReadList(ProductSearchModel? model = null) + { + throw new NotImplementedException(); + } + + public bool Update(ProductBindingModel model) + { + throw new NotImplementedException(); + } + } +}