public ActionResult DecrementInCart(int Id) { cart = getCart(); Product p = db.Products.Where(x => x.Id == Id).SingleOrDefault(); cart.DecrementProduct(p); //ViewData["EncryptedData"] = EncryptPaypalData(cart); ViewData["UnencryptedButton"] = MakeUnencryptedPaypalButtonHtml(cart); return RedirectToAction("Index", "Cart"); }