25 lines
489 B
C#
25 lines
489 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectCompRepair.Entities;
|
|
|
|
public class Master
|
|
{
|
|
public int Id { get; private set; }
|
|
[DisplayName("Имя")]
|
|
public string Name { get; private set; }
|
|
|
|
public static Master CreateEntity(int id, string name)
|
|
{
|
|
return new Master
|
|
{
|
|
Id = id,
|
|
Name = name
|
|
};
|
|
}
|
|
}
|