using ProductionInCehOTP.Entities.Enums; namespace ProductionInCehOTP.Entities; public class Product { public int Id { get; private set; } public NameOfProducts Name { get; private set; } public int Price { get; private set; } public int ProductionId { get; private set; } public int ProductionTypeID { get; private set; } public static Product CreateProducts(int id, NameOfProducts name, int price, int productionId, int productionTypeId) { return new Product { Id = id, Name = name, Price = price, ProductionId = productionId, ProductionTypeID = productionTypeId }; } }