public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var constructor = await _instructorRepository.Instructor((int)id); return(View(constructor)); }