From 65599c80a26707f48cd1a1237bf27b6de63acc64 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 18:53:25 +0400 Subject: [PATCH] storage contract --- .../StorageContracts/IBuidStorage.cs | 12 ++++++++++++ .../StorageContracts/ICommentStorage.cs | 12 ++++++++++++ .../StorageContracts/IComponentStorage.cs | 12 ++++++++++++ .../StorageContracts/IOrderStorage.cs | 12 ++++++++++++ .../StorageContracts/IProductStorage.cs | 12 ++++++++++++ .../StorageContracts/IPurchaseStorage.cs | 12 ++++++++++++ .../StorageContracts/IStoreKeeperStorage.cs | 12 ++++++++++++ .../StorageContracts/IVendorStorage.cs | 12 ++++++++++++ 8 files changed, 96 insertions(+) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IBuidStorage.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/ICommentStorage.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IComponentStorage.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IOrderStorage.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IProductStorage.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IPurchaseStorage.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IStoreKeeperStorage.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IVendorStorage.cs diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IBuidStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IBuidStorage.cs new file mode 100644 index 0000000..45ec55c --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IBuidStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface IBuidStorage + { + List GetFullList(); + List GetFilteredList(BuildSearchModel model); + BuildViewModel? GetElement(BuildSearchModel model); + BuildViewModel? Insert(BuildBindingModel model); + BuildViewModel? Update(BuildBindingModel model); + BuildViewModel? Delete(BuildBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/ICommentStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/ICommentStorage.cs new file mode 100644 index 0000000..692e0a0 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/ICommentStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface ICommentStorage + { + List GetFullList(); + List GetFilteredList(CommentSearchModel model); + CommentViewModel? GetElement(CommentSearchModel model); + CommentViewModel? Insert(CommentBindingModel model); + CommentViewModel? Update(CommentBindingModel model); + CommentViewModel? Delete(CommentBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IComponentStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IComponentStorage.cs new file mode 100644 index 0000000..fb58859 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IComponentStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface IComponentStorage + { + List GetFullList(); + List GetFilteredList(ComponentSearchModel model); + ComponentViewModel? GetElement(ComponentSearchModel model); + ComponentViewModel? Insert(ComponentBindingModel model); + ComponentViewModel? Update(ComponentBindingModel model); + ComponentViewModel? Delete(ComponentBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IOrderStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IOrderStorage.cs new file mode 100644 index 0000000..072ab63 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IOrderStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface IOrderStorage + { + List GetFullList(); + List GetFilteredList(OrderSearchModel model); + OrderViewModel? GetElement(OrderSearchModel model); + OrderViewModel? Insert(OrderBindingModel model); + OrderViewModel? Update(OrderBindingModel model); + OrderViewModel? Delete(OrderBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IProductStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IProductStorage.cs new file mode 100644 index 0000000..8d20042 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IProductStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface IProductStorage + { + List GetFullList(); + List GetFilteredList(ProductSearchModel model); + ProductViewModel? GetElement(ProductSearchModel model); + ProductViewModel? Insert(ProductBindingModel model); + ProductViewModel? Update(ProductBindingModel model); + ProductViewModel? Delete(ProductBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IPurchaseStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IPurchaseStorage.cs new file mode 100644 index 0000000..590b9f3 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IPurchaseStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface IPurchaseStorage + { + List GetFullList(); + List GetFilteredList(PurchaseSearchModel model); + PurchaseViewModel? GetElement(PurchaseSearchModel model); + PurchaseViewModel? Insert(PurchaseBindingModel model); + PurchaseViewModel? Update(PurchaseBindingModel model); + PurchaseViewModel? Delete(PurchaseBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IStoreKeeperStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IStoreKeeperStorage.cs new file mode 100644 index 0000000..aea3bff --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IStoreKeeperStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface IStoreKeeperStorage + { + List GetFullList(); + List GetFilteredList(StoreKeeperSearchModel model); + StoreKeeperViewModel? GetElement(StoreKeeperSearchModel model); + StoreKeeperViewModel? Insert(StoreKeeperBindingModel model); + StoreKeeperViewModel? Update(StoreKeeperBindingModel model); + StoreKeeperViewModel? Delete(StoreKeeperBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IVendorStorage.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IVendorStorage.cs new file mode 100644 index 0000000..76d03bf --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/StorageContracts/IVendorStorage.cs @@ -0,0 +1,12 @@ +namespace ComputerHardwareStoreContracts.StorageContracts +{ + public interface IVendorStorage + { + List GetFullList(); + List GetFilteredList(VendorSearchModel model); + VendorViewModel? GetElement(VendorSearchModel model); + VendorViewModel? Insert(VendorBindingModel model); + VendorViewModel? Update(VendorBindingModel model); + VendorViewModel? Delete(VendorBindingModel model); + } +}