Esempio n. 1
0
 public ActionResult AddToCart(AddToCartInputModel addToCartInputModel)
 {
     return(this.Redirect(
                this._cartService.AddToCart(
                    addToCartInputModel.Code,
                    addToCartInputModel.Quantity,
                    addToCartInputModel.CurrentPageLink)));
 }
Esempio n. 2
0
        public CartPreviewViewModel AddToCart([FromBody] AddToCartInputModel inputModel)
        {
            this._cartService.AddToCart(inputModel.Code, inputModel.Quantity);

            var preview = this._cartService.GetCartPreview();

            return(preview);
        }