public ActionResult Detail(int?id) { if (id == null) { return(HttpNotFound()); } var episode = _episodeRepository.GetEpisode(id.Value); return(View(episode)); }