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

            var preview = this._cartService.GetCartPreview();

            return(preview);
        }