// GET: Instructor public async Task <ActionResult> Index() { IEnumerable <Instructor> instructors = null; using (_instructorRepository = new InstructorRepository()) { instructors = await _instructorRepository.GetListAsync(); } return(View(instructors)); }