20 lines
358 B
C#
20 lines
358 B
C#
|
using GasStation.Entities.Enums;
|
|||
|
|
|||
|
namespace GasStation.Entities;
|
|||
|
|
|||
|
public class Product
|
|||
|
{
|
|||
|
public int Id { get; private set; }
|
|||
|
|
|||
|
public Gasmen Gasman { get; private set; }
|
|||
|
|
|||
|
public static Product CreateProduct(int id, Gasmen gasman)
|
|||
|
{
|
|||
|
return new Product
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
Gasman = gasman
|
|||
|
};
|
|||
|
}
|
|||
|
}
|