25 lines
633 B
C#
25 lines
633 B
C#
using ProjectRepairWork.Entities.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectRepairWork.Entities;
|
|
|
|
public class Works
|
|
{
|
|
public int Id { get; private set; }
|
|
public string WorkName { get; private set; } = string.Empty;
|
|
public MaterialsName MaterialsName { get; private set; }
|
|
public static Works CreatEntity(int id, string workName, MaterialsName materialsName)
|
|
{
|
|
return new Works
|
|
{
|
|
Id = id,
|
|
WorkName = workName,
|
|
MaterialsName = materialsName
|
|
};
|
|
}
|
|
}
|