From 6a7395b3b5c62f889b33e6faa74727f9d0692cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=93=D0=BE=D1=80=D0=B4?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2?= <89176335310x@gmail.com> Date: Sun, 28 Apr 2024 20:59:10 +0400 Subject: [PATCH] Storage add --- .../ICategoryProductStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IClientStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IOrderStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IProductStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IRoleStorage.cs | 21 +++++++++++++++++++ .../StorageContracts/IShopAssistentStorage.cs | 21 +++++++++++++++++++ 6 files changed, 126 insertions(+) create mode 100644 ElectronicsShop/ElectronicsShopContracts/StorageContracts/ICategoryProductStorage.cs create mode 100644 ElectronicsShop/ElectronicsShopContracts/StorageContracts/IClientStorage.cs create mode 100644 ElectronicsShop/ElectronicsShopContracts/StorageContracts/IOrderStorage.cs create mode 100644 ElectronicsShop/ElectronicsShopContracts/StorageContracts/IProductStorage.cs create mode 100644 ElectronicsShop/ElectronicsShopContracts/StorageContracts/IRoleStorage.cs create mode 100644 ElectronicsShop/ElectronicsShopContracts/StorageContracts/IShopAssistentStorage.cs diff --git a/ElectronicsShop/ElectronicsShopContracts/StorageContracts/ICategoryProductStorage.cs b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/ICategoryProductStorage.cs new file mode 100644 index 0000000..4bd0241 --- /dev/null +++ b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/ICategoryProductStorage.cs @@ -0,0 +1,21 @@ +using ElectronicsShopContracts.BindingModels; +using ElectronicsShopContracts.SearchModels; +using ElectronicsShopContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ElectronicsShopContracts.StorageContracts +{ + public interface ICategoryProductStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + CategoryProductViewModel? GetElement(ClientSearchModel model); + CategoryProductViewModel? Insert(ClientBindingModel model); + CategoryProductViewModel? Update(ClientBindingModel model); + CategoryProductViewModel? Delete(ClientBindingModel model); + } +} diff --git a/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IClientStorage.cs b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IClientStorage.cs new file mode 100644 index 0000000..e890ea4 --- /dev/null +++ b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IClientStorage.cs @@ -0,0 +1,21 @@ +using ElectronicsShopContracts.BindingModels; +using ElectronicsShopContracts.SearchModels; +using ElectronicsShopContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ElectronicsShopContracts.StorageContracts +{ + public interface IClientStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + ClientViewModel? GetElement(ClientSearchModel model); + ClientViewModel? Insert(ClientBindingModel model); + ClientViewModel? Update(ClientBindingModel model); + ClientViewModel? Delete(ClientBindingModel model); + } +} diff --git a/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IOrderStorage.cs b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IOrderStorage.cs new file mode 100644 index 0000000..0f4b0cd --- /dev/null +++ b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IOrderStorage.cs @@ -0,0 +1,21 @@ +using ElectronicsShopContracts.BindingModels; +using ElectronicsShopContracts.SearchModels; +using ElectronicsShopContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ElectronicsShopContracts.StorageContracts +{ + public interface IOrderStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + OrderViewModel? GetElement(ClientSearchModel model); + OrderViewModel? Insert(ClientBindingModel model); + OrderViewModel? Update(ClientBindingModel model); + OrderViewModel? Delete(ClientBindingModel model); + } +} diff --git a/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IProductStorage.cs b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IProductStorage.cs new file mode 100644 index 0000000..cef81a4 --- /dev/null +++ b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IProductStorage.cs @@ -0,0 +1,21 @@ +using ElectronicsShopContracts.BindingModels; +using ElectronicsShopContracts.SearchModels; +using ElectronicsShopContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ElectronicsShopContracts.StorageContracts +{ + public interface IProductStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + ProductViewModel? GetElement(ClientSearchModel model); + ProductViewModel? Insert(ClientBindingModel model); + ProductViewModel? Update(ClientBindingModel model); + ProductViewModel? Delete(ClientBindingModel model); + } +} diff --git a/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IRoleStorage.cs b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IRoleStorage.cs new file mode 100644 index 0000000..fad07f8 --- /dev/null +++ b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IRoleStorage.cs @@ -0,0 +1,21 @@ +using ElectronicsShopContracts.BindingModels; +using ElectronicsShopContracts.SearchModels; +using ElectronicsShopContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ElectronicsShopContracts.StorageContracts +{ + public interface IRoleStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + RoleViewModel? GetElement(ClientSearchModel model); + RoleViewModel? Insert(ClientBindingModel model); + RoleViewModel? Update(ClientBindingModel model); + RoleViewModel? Delete(ClientBindingModel model); + } +} diff --git a/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IShopAssistentStorage.cs b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IShopAssistentStorage.cs new file mode 100644 index 0000000..e0f4416 --- /dev/null +++ b/ElectronicsShop/ElectronicsShopContracts/StorageContracts/IShopAssistentStorage.cs @@ -0,0 +1,21 @@ +using ElectronicsShopContracts.BindingModels; +using ElectronicsShopContracts.SearchModels; +using ElectronicsShopContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ElectronicsShopContracts.StorageContracts +{ + public interface IShopAssistentStorage + { + List GetFullList(); + List GetFilteredList(ClientSearchModel model); + ShopAssistentViewModel? GetElement(ClientSearchModel model); + ShopAssistentViewModel? Insert(ClientBindingModel model); + ShopAssistentViewModel? Update(ClientBindingModel model); + ShopAssistentViewModel? Delete(ClientBindingModel model); + } +}