18 lines
624 B
C#
18 lines
624 B
C#
using ProductionInCehOTP.Entities.Enums;
|
|
|
|
namespace ProductionInCehOTP.Entities;
|
|
|
|
public class Product
|
|
{
|
|
public int Id { get; private set; }
|
|
public string Name { get; private set; }
|
|
public int Price { get; private set; }
|
|
public int ProductionId { get; private set; }
|
|
public NameOfProductTypes ProductionType { get; private set; }
|
|
|
|
public static Product CreateProducts(int id, string name, int price, int productionId, NameOfProductTypes productionType)
|
|
{
|
|
return new Product { Id = id, Name = name, Price = price, ProductionId = productionId, ProductionType = productionType };
|
|
}
|
|
}
|