// GET: Teacher public async Task <IActionResult> IndexAsync() { IEnumerable <Teacher> model = await teacherRepo.GetAllAsync(); return(View(model)); }
// GET: Teacher public async Task <ActionResult> Index() { return(View(await _teacherRepo.GetAllAsync())); }