Реализация интерфейсов
This commit is contained in:
parent
b683df9b1f
commit
12c1611f71
@ -0,0 +1,28 @@
|
|||||||
|
using ProjectConfectionaryFactory.Entities;
|
||||||
|
|
||||||
|
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
|
public class ClientRepository : IClientRepository
|
||||||
|
{
|
||||||
|
public void CreateClient(Client client)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DeleteClient(int id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Client ReadClientById(int id)
|
||||||
|
{
|
||||||
|
return Client.CreateEntity(0, string.Empty, string.Empty, 0, string.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Client> ReadClients()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateClient(Client client)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
using ProjectConfectionaryFactory.Entities;
|
||||||
|
|
||||||
|
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
|
public class ComponentRepository : IComponentRepository
|
||||||
|
{
|
||||||
|
public void CreateComponent(Component component)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DeleteComponent(int id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Component ReadComponentById(int id)
|
||||||
|
{
|
||||||
|
return Component.CreateEntity(0, string.Empty, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Component> ReadComponents()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateComponent(Component component)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
using ProjectConfectionaryFactory.Entities;
|
||||||
|
|
||||||
|
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
|
public class OrderRepository : IOrderRepository
|
||||||
|
{
|
||||||
|
public void CreateOrder(Order order)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DeleteOrder(int id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Order ReadOrderById(int id)
|
||||||
|
{
|
||||||
|
return Order.CreateEntity(0, 0, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Order> ReadOrders()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateOrder(Order order)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
using ProjectConfectionaryFactory.Entities;
|
||||||
|
using ProjectConfectionaryFactory.Entities.Enums;
|
||||||
|
|
||||||
|
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
|
public class ProductRepository : IProductRepository
|
||||||
|
{
|
||||||
|
public void CreateProduct(Product product)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DeleteProduct(int id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Product ReadProductById(int id)
|
||||||
|
{
|
||||||
|
return Product.CreateEntity(0, ConfectionaryType.None, string.Empty, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Product> ReadProducts()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateProduct(Product product)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
using ProjectConfectionaryFactory.Entities;
|
||||||
|
|
||||||
|
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
|
public class SupplierRepository : ISupplierRepository
|
||||||
|
{
|
||||||
|
public void CreateSupplier(Supplier supplier)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DeleteSupplier(int id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Supplier ReadSupplierById(int id)
|
||||||
|
{
|
||||||
|
return Supplier.CreateEntity(0, string.Empty, 0, string.Empty);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Supplier> ReadSuppliers()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateSupplier(Supplier supplier)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
using ProjectConfectionaryFactory.Entities;
|
||||||
|
|
||||||
|
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
|
public class SupplyRepository : ISupplyRepository
|
||||||
|
{
|
||||||
|
public void CreateSupply(Supply supply)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void DeleteSupply(int id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public Supply ReadSupplyById(int id)
|
||||||
|
{
|
||||||
|
return Supply.CreateEntity(0, 0, 0, 0, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Supply> ReadSupplys()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void UpdateSupply(Supply supply)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user