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

            var comicBookArtist = _comicBookArtistsRepository.Get(id.Value);

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

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

            // Include the "ComicBook.Series", "Artist", and "Role" navigation properties.
            var comicBookArtist = _comicBookArtistRepository.Get((int)id);

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

            return(View(comicBookArtist));
        }