PIbd-21_Tarasov_V.D._Optika/ProjectOptika/Scripts/Entities/Employee.cs

29 lines
817 B
C#

using ProjectOptika.Scripts.Entities.Enums;
namespace ProjectOptika.Scripts.Entities
{
public class Employee
{
public int ID { get; private set; }
public PositionEmployee PositionEmployee { get; private set; }
public string FirstName { get; private set; }
public string SecondName { get; private set; }
public string Surname { get; private set; }
public static Employee CreateEntity(int id, PositionEmployee positionEmployee, string firstName, string secondName, string surname) {
return new Employee
{
ID = id,
PositionEmployee = positionEmployee,
FirstName = firstName,
SecondName = secondName,
Surname = surname
};
}
}
}