исправлем
This commit is contained in:
parent
84a59803d9
commit
9c4297756c
@ -11,24 +11,18 @@ namespace ShoeStore.Entities;
|
|||||||
public class Product
|
public class Product
|
||||||
{
|
{
|
||||||
public int Id { get; private set; }
|
public int Id { get; private set; }
|
||||||
//public int StorageProductId { get; private set; }
|
|
||||||
public string NameOfShoes { get; private set; }
|
public string NameOfShoes { get; private set; }
|
||||||
public ManufacturingCompany ManufacturingCompany { get; private set; }
|
public ManufacturingCompany ManufacturingCompany { get; private set; }
|
||||||
public int Price { get; private set; }
|
public int Price { get; private set; }
|
||||||
//public ProductType ProductType { get; private set; }
|
|
||||||
//public int StorageSize { get; private set; }
|
|
||||||
|
|
||||||
public static Product CreateEntity(int id, string nameOfShoes, ManufacturingCompany manufacturingCompany, int price)
|
public static Product CreateEntity(int id, string nameOfShoes, ManufacturingCompany manufacturingCompany, int price)
|
||||||
{
|
{
|
||||||
return new Product
|
return new Product
|
||||||
{
|
{
|
||||||
Id = id,
|
Id = id,
|
||||||
//StorageProductId = storageProductId,
|
|
||||||
NameOfShoes = nameOfShoes,
|
NameOfShoes = nameOfShoes,
|
||||||
ManufacturingCompany = manufacturingCompany,
|
ManufacturingCompany = manufacturingCompany,
|
||||||
Price = price,
|
Price = price,
|
||||||
//ProductType = productType,
|
|
||||||
//StorageSize = storageSize
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user