Создал классы логики, нужно реализовать

This commit is contained in:
Никита Потапов 2024-11-20 00:27:36 +04:00
parent 3140ab81a6
commit 3136067777
3 changed files with 82 additions and 0 deletions

View File

@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\InternetShopContracts\InternetShopContracts.csproj" />
</ItemGroup>
</Project>

View 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();
}
}
}

View 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();
}
}
}