public async Task <ActionResult> SpecificInstructor(int id) { IEnumerable <Instructor> result = null; using (_instructorRepository = new InstructorRepository()) { var allInstructors = await _instructorRepository.GetListWithCoursesAsync(); result = from x in allInstructors where x.InstructorID == id select x; } return(View(result.ToList()[0])); }