PIbd-21 Valiulov I.A. LabWork01 #2

Open
Ilyas wants to merge 3 commits from LabWork01 into main
Showing only changes of commit 71c7d377c4 - Show all commits

View File

@ -7,8 +7,8 @@ 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; set; }
public IEnumerable<ProductMaterial> ProductMaterial { get; private set; } = [];
public int CountInWarehouse { get; private set; }
public IEnumerable<ProductMaterial> ProductMaterial { get; set; } = [];
public static Product CreateEntity(int id, string name, ProductType type, int countInWarehouse, IEnumerable<ProductMaterial> productMaterial)
{
return new Product