public ActionResult UpdateShipping(string id, string shippingId, NominatedDeliveryModel nominatedDelivery) { var response = _basketApi.UpdateShipping(Sanitizer.GetSafeHtmlFragment(id), Sanitizer.GetSafeHtmlFragment(shippingId), nominatedDelivery); var basket = response.Result; if (basket.LineItems == null) { basket.LineItems = new List <BasketLineModel>(); } return(JsonSuccess(new { basket = basket, BasketStage = BasketStage.ShippingMethodSelected.GetHashCode() }, JsonRequestBehavior.AllowGet)); }