Example #1
0
        public ActionResult AddCart(int id, string quantity)
        {
            var userId = int.Parse(SessionMenager.UserId);

            var cartId = cartRepository.SelectCart(userId);

            cartRepository.AddProductToCartUser(id, int.Parse(quantity), cartId);

            return(RedirectToAction("ProductInfo", id));
        }