Example #1
0
        public ActionResult RemovefromCart(int productId, string userName)
        {
            //Method to call whenever user decreases quantity by 1 with each click under "My Purchases"
            //To ensure that the decrement button html has limit on how low it can go
            CartFunctions.RemovefromCart(productId, userName);

            return(Redirect(Request.UrlReferrer.ToString()));
        }