31 lines
698 B
C#
Raw Permalink Normal View History

2024-11-25 01:31:46 +04:00
using System;
using System.Collections.Generic;
2024-12-24 23:35:16 +04:00
using System.ComponentModel;
2024-11-25 01:31:46 +04:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectRepairWork.Entities;
public class RepairRepair
{
public int Id { get; private set; }
public int WorkId { get; private set; }
2024-12-24 23:35:16 +04:00
[DisplayName("Работы")]
public string WorkName { get; private set; } = string.Empty;
[DisplayName("Количество")]
2024-12-24 17:10:38 +04:00
public int Count { get; set; }
2024-11-25 01:31:46 +04:00
public static RepairRepair CreatElement(int id, int workId, int count)
{
return new RepairRepair
{
Id = id,
WorkId = workId,
Count = count,
};
}
}