// GET: Carts/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Cart cart = cartProcess.Find((int)id); if (cart == null) { return(HttpNotFound()); } return(View(cart)); }
// GET: Carts/Edit public ActionResult Edit(int id) { var cp = new CartProcess(); var cart = cp.Find(id); return(View(cart)); }