Исправены репозитории в соответствии с сущностями

This commit is contained in:
Pyro 2024-11-29 07:11:01 +04:00
parent e70c5bfc06
commit 31dd4aa11f
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ public class OrderRepository : IOrderRepository
public Order ReadOrderById(int id)
{
return Order.CreateEntity(0, 0, false);
return Order.CreateOperation(0, 0, false, null);
}
public IEnumerable<Order> ReadOrders()

View File

@ -15,7 +15,7 @@ public class ProductRepository : IProductRepository
public Product ReadProductById(int id)
{
return Product.CreateEntity(0, ConfectionaryType.None, string.Empty, 0);
return Product.CreateEntity(0, ConfectionaryType.None, string.Empty, 0, null);
}
public IEnumerable<Product> ReadProducts()

View File

@ -14,7 +14,7 @@ public class SupplyRepository : ISupplyRepository
public Supply ReadSupplyById(int id)
{
return Supply.CreateEntity(0, 0, 0, 0, false);
return Supply.CreateOperation(0, 0, 0, 0, false);
}
public IEnumerable<Supply> ReadSupplys()