diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs index bb32d1c..08cf151 100644 --- a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/OrderRepository.cs @@ -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 ReadOrders() diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs index 6b6894e..f1c2fb6 100644 --- a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/ProductRepository.cs @@ -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 ReadProducts() diff --git a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs index 76d807e..08c1298 100644 --- a/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs +++ b/ProjectConfectionaryFactory/ProjectConfectionaryFactory/Repositories/Implementations/SupplyRepository.cs @@ -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 ReadSupplys()