//public ActionResult GetBasketData() //{ // var basket = _basketApi.GetBasketData(""); // return JsonSuccess(basket, JsonRequestBehavior.AllowGet); //} public async Task <ActionResult> GetBasketData() { var basket = SiteUtils.HasBasketAction() ? await _basketApi.GetBasketDataAsync("") : null; SiteUtils.SetBasketAction(basket?.Result.Id); return(JsonSuccess(basket?.Result, JsonRequestBehavior.AllowGet)); }