public ActionResult Delete(int comicBookId, int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var comicBookArtist = _comicBookArtistsRepository.GetById((int)id);

            if (comicBookArtist == null)
            {
                return(HttpNotFound());
            }

            return(View(comicBookArtist));
        }
示例#2
0
        public ActionResult Delete(int comicBookId, int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            // Get the comic book artist.
            // Include the "ComicBook.Series", "Artist", and "Role" navigation properties.
            var comicBookArtist = _comicBookArtistsRepository.GetById((int)id);

            if (comicBookArtist == null)
            {
                return(HttpNotFound());
            }

            return(View(comicBookArtist));
        }