public ActionResult UpdateBasketDeliveryAddress(CheckoutModel checkout) { //if(checkout.SelectedShipping.Type == ShippingTypes.CollectPlus || checkout.SelectedShipping.Type == ShippingTypes.ClickAndCollect || checkout.SelectedShipping.Type == ShippingTypes.Shutl) //{ // checkout.ShippingAddress = null; //} var response = _checkoutApi.UpdateBasketDeliveryAddress(Sanitizer.GetSafeHtmlFragment(checkout.BasketId), checkout); return(JsonSuccess(new { response = response, BasketStage = BasketStage.ShippingAddressProvided.GetHashCode() }, JsonRequestBehavior.AllowGet)); }
public ActionResult UpdateBasketDeliveryAddress(CheckoutModel checkout) { var response = _checkoutApi.UpdateBasketDeliveryAddress(Sanitizer.GetSafeHtmlFragment(checkout.BasketId), checkout); return(JsonSuccess(new { response = response, BasketStage = BasketStage.ShippingAddressProvided.GetHashCode() }, JsonRequestBehavior.AllowGet)); }