public ActionResult Details(int id) { var model = db.Get(id); if (model == null) { return(View("NotFound")); } return(View(model)); }