Ejemplo n.º 1
0
        public ActionResult AddTOCart(int productId)
        {
            var userId = Current.User.Identity.GetUserId();

            service.AddTOCart(userId, productId);
            return(View("Index", CartServices.GetAllProducts()));
        }
Ejemplo n.º 2
0
        // GET: ShopNow
        public ActionResult Index()
        {
            var userId  = Current.User.Identity.GetUserId();
            var product = CartServices.GetAllProducts();

            service.OpenCart(userId);
            return(View(product));
        }