From 3b1a037e139dae0fbc88b0d5192206e0cc0788d8 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: Tue, 19 Nov 2024 22:41:03 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D1=8B=20?= =?UTF-8?q?=D1=85=D1=80=D0=B0=D0=BD=D0=B8=D0=BB=D0=B8=D1=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StorageContracts/IOrderStorage.cs | 15 +++++++++++++++ .../StorageContracts/IProductStorage.cs | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 InternetShop/InternetShopContracts/StorageContracts/IOrderStorage.cs create mode 100644 InternetShop/InternetShopContracts/StorageContracts/IProductStorage.cs diff --git a/InternetShop/InternetShopContracts/StorageContracts/IOrderStorage.cs b/InternetShop/InternetShopContracts/StorageContracts/IOrderStorage.cs new file mode 100644 index 0000000..2ee9142 --- /dev/null +++ b/InternetShop/InternetShopContracts/StorageContracts/IOrderStorage.cs @@ -0,0 +1,15 @@ +using InternetShopContracts.DataSearchModels; +using InternetShopContracts.DataViewModels; + +namespace InternetShopContracts.StorageContracts +{ + public interface IOrderStorage + { + List GetFullList(); + List GetFilteredList(OrderSearchModel model); + OrderViewModel? GetElement(OrderSearchModel model); + OrderViewModel? Insert(OrderSearchModel model); + OrderViewModel? Update(OrderSearchModel model); + OrderViewModel? Delete(OrderSearchModel model); + } +} diff --git a/InternetShop/InternetShopContracts/StorageContracts/IProductStorage.cs b/InternetShop/InternetShopContracts/StorageContracts/IProductStorage.cs new file mode 100644 index 0000000..bc59e78 --- /dev/null +++ b/InternetShop/InternetShopContracts/StorageContracts/IProductStorage.cs @@ -0,0 +1,15 @@ +using InternetShopContracts.DataSearchModels; +using InternetShopContracts.DataViewModels; + +namespace InternetShopContracts.StorageContracts +{ + public interface IProductStorage + { + List GetFullList(); + List GetFilteredList(ProductSearchModel model); + ProductViewModel? GetElement(ProductSearchModel model); + ProductViewModel? Insert(ProductSearchModel model); + ProductViewModel? Update(ProductSearchModel model); + ProductViewModel? Delete(ProductSearchModel model); + } +}