Example #1
0
        public ActionResult GetShoppingCart()
        {
            var card = _nopService.GetShoppingCart(_userContext.CustomerId());

            var products = card.Products;

            return(View("~/Views/Partials/ShoppingCart.cshtml", products));
        }
        public ShoppingCartRootObject GetShoppingCart(string customerId)
        {
            var cart = _nopService.GetShoppingCart(customerId);

            return(cart);
        }