public ActionResult EditCount(int id,int count)
 {
     var cart = ShoppingCart.GetCart(this.HttpContext);
     var pId = storeDB.Carts.Single(c => c.RecordId == id).ProductId;
     //string productName = storeDB.Products.Single(p => p.ProductId == pId).Title;
     int itemCount = cart.EditCount(id,count);
     var results = new ShoppingCartRemoveViewModel
     {
         Message = "",
         CartTotal = cart.GetTotal(),
         CartCount = cart.GetCount(),
         ItemCount = itemCount,
         EditId = id
     };
     return Json(results);
 }
 public ActionResult RemoveFromCart(int id)
 {
     var cart = ShoppingCart.GetCart(this.HttpContext);
     var pId = storeDB.Carts.Single(c => c.RecordId == id).ProductId;
     string productName = storeDB.Products.Single(p => p.ProductId == pId).Title;
     int itemCount = cart.RemoveFromCart(id);
     var results = new ShoppingCartRemoveViewModel
     {
         Message = "* " + Server.HtmlEncode(productName) +
         "已被从购物车中清除",
         CartTotal = cart.GetTotal(),
         CartCount = cart.GetCount(),
         ItemCount = itemCount,
         EditId = id
     };
     return Json(results);
 }