// GET: Admin/Professors public async Task <ActionResult> Index() { var professors = await _professorRepository.GetProfessors(); // Add properties to layout AddPageHeader("Professors", "List of all professors"); AddBreadcrumb("Professors", ""); return(View(professors)); }