Добавил интерфейсы логики
This commit is contained in:
parent
3e356cb08e
commit
677614a50e
@ -0,0 +1,15 @@
|
|||||||
|
using InternetShopContracts.DataBindingModels;
|
||||||
|
using InternetShopContracts.DataSearchModels;
|
||||||
|
using InternetShopContracts.DataViewModels;
|
||||||
|
|
||||||
|
namespace InternetShopContracts.LogicsContracts
|
||||||
|
{
|
||||||
|
public interface IOrderLogic
|
||||||
|
{
|
||||||
|
List<OrderViewModel> ReadList(OrderSearchModel? model = null);
|
||||||
|
OrderViewModel? ReadElement(OrderSearchModel model);
|
||||||
|
bool Create(OrderBindingModel model);
|
||||||
|
bool Update(OrderBindingModel model);
|
||||||
|
bool Delete(OrderBindingModel model);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
using InternetShopContracts.DataBindingModels;
|
||||||
|
using InternetShopContracts.DataSearchModels;
|
||||||
|
using InternetShopContracts.DataViewModels;
|
||||||
|
|
||||||
|
namespace InternetShopContracts.LogicsContracts
|
||||||
|
{
|
||||||
|
public interface IProductLogic
|
||||||
|
{
|
||||||
|
List<ProductViewModel> ReadList(ProductSearchModel? model = null);
|
||||||
|
ProductViewModel? ReadElement(ProductSearchModel model);
|
||||||
|
bool Create(ProductBindingModel model);
|
||||||
|
bool Update(ProductBindingModel model);
|
||||||
|
bool Delete(ProductBindingModel model);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user