示例#1
0
        public async Task <ActionResult> GetCart()
        {
            EnsureThatCartExist();

            await _cartBuilder.EvaluatePromotionsAsync();

            await _cartBuilder.EvaluateTaxAsync();

            await _cartValidator.ValidateAsync(_cartBuilder.Cart);

            return(Json(_cartBuilder.Cart, JsonRequestBehavior.AllowGet));
        }