public ActionResult Details(int id) { Superhero superhero = superheroRepository.GetSuperhero(id); if (superhero == null) { return(View("NotFound")); } else { return(View("Details", superhero)); } }
public ActionResult Details(int id) { Superhero superhero = superheroRepository.GetSuperhero(id); if (superhero == null) { return(View("NotFound")); } else { return(View("Details", superhero)); } }