Добавил интерфейсы логики

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

View File

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

View File

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