Pibd-22_Lyakhov_T.I._Simple/StudentProgressRecord/Entity/Department.cs

29 lines
632 B
C#
Raw Normal View History

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; }
public long facultyId { get; set; }
public static Department CreateDepartment(long id, string DepartmentName, long facultyId)
{
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,
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
}
}