diff --git a/ComputerStoreContracts/ComputerStoreContracts.csproj b/ComputerStoreContracts/ComputerStoreContracts.csproj index 554642c..f632b60 100644 --- a/ComputerStoreContracts/ComputerStoreContracts.csproj +++ b/ComputerStoreContracts/ComputerStoreContracts.csproj @@ -8,7 +8,6 @@ - diff --git a/ComputerStoreContracts/StorageContracts/IComponentStorage.cs b/ComputerStoreContracts/StorageContracts/IComponentStorage.cs new file mode 100644 index 0000000..4327b06 --- /dev/null +++ b/ComputerStoreContracts/StorageContracts/IComponentStorage.cs @@ -0,0 +1,21 @@ +using ComputerStoreContracts.BindingModels; +using ComputerStoreContracts.SearchModels; +using ComputerStoreContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ComputerStoreContracts.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/ComputerStoreContracts/StorageContracts/IPCStorage.cs b/ComputerStoreContracts/StorageContracts/IPCStorage.cs new file mode 100644 index 0000000..a81ad33 --- /dev/null +++ b/ComputerStoreContracts/StorageContracts/IPCStorage.cs @@ -0,0 +1,21 @@ +using ComputerStoreContracts.BindingModels; +using ComputerStoreContracts.SearchModels; +using ComputerStoreContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ComputerStoreContracts.StorageContracts +{ + public interface IPCStorage + { + List GetFullList(); + List GetFilteredList(PCSearchModel model); + PCViewModel? GetElement(PCSearchModel model); + PCViewModel? Insert(PCBindingModel model); + PCViewModel? Update(PCBindingModel model); + PCViewModel? Delete(PCBindingModel model); + } +} diff --git a/ComputerStoreContracts/StorageContracts/IProductStorage.cs b/ComputerStoreContracts/StorageContracts/IProductStorage.cs new file mode 100644 index 0000000..ccbfd9c --- /dev/null +++ b/ComputerStoreContracts/StorageContracts/IProductStorage.cs @@ -0,0 +1,21 @@ +using ComputerStoreContracts.BindingModels; +using ComputerStoreContracts.SearchModels; +using ComputerStoreContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ComputerStoreContracts.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); + } +}