// GET: MenuOrders/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MenuOrder menuOrder = db.MenuOrders.Find(id); if (menuOrder == null) { return(HttpNotFound()); } return(View(OrderUtils.GetOrderModel(menuOrder))); }