public class Department
{
public int Id { get; set; }
public string Name { get; set; }
public int? HeadDepartmentId { get; set; }
public Department HeadDepartment { get; set; }
public List<Department> ChildDepartments { get; set; }
}