Создал классы логики, нужно реализовать
This commit is contained in:
parent
3140ab81a6
commit
3136067777
@ -6,4 +6,8 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\InternetShopContracts\InternetShopContracts.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
43
InternetShop/InternetShopLogics/Logics/OrderLogic.cs
Normal file
43
InternetShop/InternetShopLogics/Logics/OrderLogic.cs
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
using InternetShopContracts.DataBindingModels;
|
||||||
|
using InternetShopContracts.DataSearchModels;
|
||||||
|
using InternetShopContracts.DataViewModels;
|
||||||
|
using InternetShopContracts.LogicsContracts;
|
||||||
|
using InternetShopContracts.StorageContracts;
|
||||||
|
|
||||||
|
namespace InternetShopLogics.Logics
|
||||||
|
{
|
||||||
|
public class OrderLogic : IOrderLogic
|
||||||
|
{
|
||||||
|
private IOrderStorage _orderStorage;
|
||||||
|
|
||||||
|
public OrderLogic(IOrderStorage orderStorage)
|
||||||
|
{
|
||||||
|
_orderStorage = orderStorage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Create(OrderBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Delete(OrderBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public OrderViewModel? ReadElement(OrderSearchModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OrderViewModel> ReadList(OrderSearchModel? model = null)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Update(OrderBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
35
InternetShop/InternetShopLogics/Logics/ProductLogic.cs
Normal file
35
InternetShop/InternetShopLogics/Logics/ProductLogic.cs
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
using InternetShopContracts.DataBindingModels;
|
||||||
|
using InternetShopContracts.DataSearchModels;
|
||||||
|
using InternetShopContracts.DataViewModels;
|
||||||
|
using InternetShopContracts.LogicsContracts;
|
||||||
|
|
||||||
|
namespace InternetShopLogics.Logics
|
||||||
|
{
|
||||||
|
public class ProductLogic : IProductLogic
|
||||||
|
{
|
||||||
|
public bool Create(ProductBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Delete(ProductBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProductViewModel? ReadElement(ProductSearchModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<ProductViewModel> ReadList(ProductSearchModel? model = null)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool Update(ProductBindingModel model)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user