public ActionResult About() { _model = TreeCreator.MakeTree( _context.Departaments .Include(q => q.Employees) .Include(q => q.Employees .Select(w => w.CitizenshipDescription) ).ToList() ); return(View()); }
public static DepartamentNode MakeTree(List <Departament> list) { Root = NodeCreator(list.Single(q => q.ParentId == null), list); return(Root); }