Добавил интерфейсы хранилищ
This commit is contained in:
parent
afc337a7ec
commit
3b1a037e13
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user