22 lines
424 B
C#
22 lines
424 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ProjectRepairWork.Entities;
|
|||
|
public class Cost
|
|||
|
{
|
|||
|
public int Id { get; private set; }
|
|||
|
public int Price { get; private set; }
|
|||
|
public static Cost CreatEntity(int id, int price)
|
|||
|
{
|
|||
|
return new Cost
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
|
|||
|
Price = price
|
|||
|
};
|
|||
|
}
|
|||
|
}
|