// GET: Fates/Details/5 public ActionResult Details(int?id) { if (!id.HasValue) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Fate fate = m_repo.GetFate(id.Value); if (fate == null) { return(HttpNotFound()); } return(View(fate)); }