示例#1
0
        public ActionResult AddtoCart(int productId, string userName, string sessionId)
        {
            //Method to call whenever user clicks "Add to Cart" under "Gallery" page/increases quantity under "My Purchases" page
            CartFunctions.AddtoCart(productId, userName);

            ViewData["sessionId"] = sessionId;
            return(Redirect(Request.UrlReferrer.ToString()));
        }