// POST: Carts/Edit public ActionResult Edit(Cart cart) { var cp = new CartProcess(); cp.Edit(cart); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Cookie,CartDate,ItemCount,Rowid,CreatedOn,CreatedBy,ChangedOn,ChangedBy")] Cart cart) { if (ModelState.IsValid) { cartProcess.Edit(cart); return(RedirectToAction("Index")); } return(View(cart)); }