// GET: Requests/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Request request = db.GetOne(id); if (request == null) { return(HttpNotFound()); } return(View(request)); }