Agathas.Storefront.Ui.Web.Controllers.BasketController.Add C# (CSharp) Method

Add() private method

private Add ( int productid ) : System.Web.Mvc.ActionResult
productid int
return System.Web.Mvc.ActionResult
        public ActionResult Add(int productid)
        {
            Guid basket_id = get_basket_id();

            // TODO: Query system to see if a product with the id exists

            var add_product_to_basket = new AddProductToBasketCommand(productid, basket_id);
            _application.action_request_to(add_product_to_basket);

            return Redirect("Index");
        }