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 Department
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string DepartmentName { get; set; }
|
|
|
|
|
|
2024-10-28 21:38:22 +04:00
|
|
|
|
public long FacultyId { get; set; }
|
2024-10-28 19:18:57 +04:00
|
|
|
|
|
2024-10-28 21:38:22 +04:00
|
|
|
|
public static Department CreateEntity(long id, string DepartmentName, long facultyId)
|
2024-10-28 19:18:57 +04:00
|
|
|
|
{
|
2024-10-28 20:25:02 +04:00
|
|
|
|
return new Department
|
|
|
|
|
{
|
2024-10-28 19:18:57 +04:00
|
|
|
|
Id = id,
|
2024-10-28 20:25:02 +04:00
|
|
|
|
DepartmentName = DepartmentName,
|
2024-10-28 21:38:22 +04:00
|
|
|
|
FacultyId = facultyId
|
2024-10-28 19:18:57 +04:00
|
|
|
|
};
|
2024-10-28 20:25:02 +04:00
|
|
|
|
}
|
2024-10-28 19:18:57 +04:00
|
|
|
|
}
|
|
|
|
|
}
|