18 lines
634 B
C#
Raw Normal View History

2024-11-12 19:18:35 +03:00
using ProductionInCehOTP.Entities.Enums;
namespace ProductionInCehOTP.Entities;
public class Product
{
public int Id { get; private set; }
2024-11-12 22:19:57 +03:00
public string Name { get; private set; }
2024-11-12 19:18:35 +03:00
public int Price { get; private set; }
2024-12-04 15:04:24 +03:00
public string ProductionId { get; private set; }
public NameOfProductTypes ProductionTypeID { get; private set; }
2024-11-12 19:18:35 +03:00
2024-12-04 15:04:24 +03:00
public static Product CreateProducts(int id, string name, int price, string productionId, NameOfProductTypes productionType)
2024-11-12 19:18:35 +03:00
{
2024-12-04 15:04:24 +03:00
return new Product { Id = id, Name = name, Price = price, ProductionId = productionId, ProductionTypeID = productionType };
2024-11-12 19:18:35 +03:00
}
}