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

28 lines
626 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)
{
return new Department
{
Id = id,
DepartmentName = DepartmentName,
facultyId = facultyId
};
}
}