Example #1
0
        public async Task <ActionResult> AddAddressJson(Address address)
        {
            await _cartBuilder.GetOrCreateNewTransientCartAsync(WorkContext.CurrentStore, WorkContext.CurrentCustomer, WorkContext.CurrentLanguage, WorkContext.CurrentCurrency);

            await _cartBuilder.AddAddressAsync(address);

            await _cartBuilder.SaveAsync();

            return(Json(null, JsonRequestBehavior.AllowGet));
        }