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)); }
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)); }