예제 #1
0
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var instructor = await _instructorService.BuildInstructorModel((int)id);

            if (instructor == null)
            {
                return(NotFound());
            }

            return(View(instructor));
        }