20 lines
458 B
C#
20 lines
458 B
C#
|
namespace IT_Company.Entities
|
|||
|
{
|
|||
|
public class Service
|
|||
|
{
|
|||
|
public int Id { get; set; }
|
|||
|
public int Price { get; set; }
|
|||
|
public string Description { get; set; }
|
|||
|
public static Service CreateEntity(int id, int price, string description)
|
|||
|
{
|
|||
|
return new Service
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
Price = price,
|
|||
|
Description = description
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|