diff --git a/CarpentryWorkshop/CarpentryWorkshop/Entities/Product.cs b/CarpentryWorkshop/CarpentryWorkshop/Entities/Product.cs index e746aee..a67428f 100644 --- a/CarpentryWorkshop/CarpentryWorkshop/Entities/Product.cs +++ b/CarpentryWorkshop/CarpentryWorkshop/Entities/Product.cs @@ -7,7 +7,7 @@ public class Product public int Id { get; private set; } public string Name { get; private set; } = string.Empty; public ProductType Type { get; private set; } - public int CountInWarehouse { get; private set; } + public int CountInWarehouse { get; set; } public IEnumerable ProductMaterial { get; private set; } = []; public static Product CreateEntity(int id, string name, ProductType type, int countInWarehouse, IEnumerable productMaterial) { diff --git a/CarpentryWorkshop/CarpentryWorkshop/Entities/ProductMaterial.cs b/CarpentryWorkshop/CarpentryWorkshop/Entities/ProductMaterial.cs index ee00083..fd4168d 100644 --- a/CarpentryWorkshop/CarpentryWorkshop/Entities/ProductMaterial.cs +++ b/CarpentryWorkshop/CarpentryWorkshop/Entities/ProductMaterial.cs @@ -3,8 +3,8 @@ public class ProductMaterial { public int Id { get; private set; } - public int MaterialId { get; private set; } - public int Count { get; private set; } + public int MaterialId { get; set; } + public int Count { get; set; } public static ProductMaterial CreateOperation(int id, int materialId, int count) { return new ProductMaterial