// GET: /Admin/Order/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Order order = objOrderBO.GetOrder(id.Value); if (order == null) { return(HttpNotFound()); } return(View(order)); }