From b2b3f9739a1c531de0b245e139bd90563455f0c7 Mon Sep 17 00:00:00 2001 From: IlyasValiulov Date: Wed, 13 Nov 2024 02:08:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BB=D0=B0=D0=B1=D0=B0=201=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CarpentryWorkshop/CarpentryWorkshop/Entities/Product.cs | 2 +- .../CarpentryWorkshop/Entities/ProductMaterial.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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