2024-10-28 19:18:57 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace StudentProgressRecord.Entity
|
|
|
|
|
{
|
|
|
|
|
public class Teacher
|
|
|
|
|
{
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Fio { get; set; }
|
|
|
|
|
|
|
|
|
|
public long DepartmentID { get; set; }
|
|
|
|
|
|
2024-10-28 20:08:02 +04:00
|
|
|
|
public static Teacher CreateTeacher(long id, string Fio, long departmentId)
|
2024-10-28 19:18:57 +04:00
|
|
|
|
{
|
|
|
|
|
return new Teacher
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
Fio = Fio,
|
2024-10-28 20:08:02 +04:00
|
|
|
|
DepartmentID = departmentId
|
2024-10-28 19:18:57 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|