public IActionResult Edit(int id)
        {
            var director = _directorService.GetDirectorById(id);

            if (director == null)
            {
                return(NotFound());
            }
            return(View(director));
        }
예제 #2
0
        // GET: Directors/Details/5
        public IActionResult Details(int id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var director = _directorService.GetDirectorById(new app.service.Directors.Query.GetDirectorById.GetDirectorByIdQuery
            {
                ID = id
            });

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

            return(View(director));
        }