PIBD_21_Basalov_A_D_Project.../project/ProjectTourAgency/Enities/Employee.cs

29 lines
621 B
C#
Raw Normal View History

using ProjectTourAgency.Enities.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectTourAgency.Enities;
public class Employee
{
public int Id { get; private set; }
public string FullName { get; private set; } = string.Empty;
public EmpoyeeJob EmployeeJob { get; private set; }
public static Employee CreateEntity(int id, string fullName,
EmpoyeeJob job)
{
return new Employee
{
Id = id,
FullName = fullName,
EmployeeJob = job
};
}
}