예제 #1
0
        public ActionResult AddTOCart(int productId)
        {
            var userId = Current.User.Identity.GetUserId();

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

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