public ActionResult MinusFromCart(long product_id) { IcbcodeCart shopping_cart = new IcbcodeCart(HttpContext); shopping_cart.RemoveFromCart(product_id, 1); return(new EmptyResult()); }
public ActionResult RemoveFromCart(long product_id) { IcbcodeCart shopping_cart = new IcbcodeCart(HttpContext); var item = shopping_cart.Items.Find(x => x.item_id == product_id); shopping_cart.RemoveFromCart(product_id, item.item_count); return(new EmptyResult()); }