Добавил интерфейсы хранилищ

This commit is contained in:
Никита Потапов 2024-11-19 22:41:03 +04:00
parent afc337a7ec
commit 3b1a037e13
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
using InternetShopContracts.DataSearchModels;
using InternetShopContracts.DataViewModels;
namespace InternetShopContracts.StorageContracts
{
public interface IOrderStorage
{
List<OrderViewModel> GetFullList();
List<OrderViewModel> GetFilteredList(OrderSearchModel model);
OrderViewModel? GetElement(OrderSearchModel model);
OrderViewModel? Insert(OrderSearchModel model);
OrderViewModel? Update(OrderSearchModel model);
OrderViewModel? Delete(OrderSearchModel model);
}
}

View File

@ -0,0 +1,15 @@
using InternetShopContracts.DataSearchModels;
using InternetShopContracts.DataViewModels;
namespace InternetShopContracts.StorageContracts
{
public interface IProductStorage
{
List<ProductViewModel> GetFullList();
List<ProductViewModel> GetFilteredList(ProductSearchModel model);
ProductViewModel? GetElement(ProductSearchModel model);
ProductViewModel? Insert(ProductSearchModel model);
ProductViewModel? Update(ProductSearchModel model);
ProductViewModel? Delete(ProductSearchModel model);
}
}