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); + } +}