Exemplo n.º 1
0
        public ActionResult Shipping(Kona.Data.Address address)
        {
            if (ModelState.IsValid)
            {
                //save the address
                this.CurrentCart.ShippingAddress = Address.SaveIfNotExists(address);

                //calc the tax
                this.CurrentCart.TaxAmount = _pluginEngine.CalculateTax(this.SiteData.TaxPlugin, this.CurrentCart);

                //save the cart
                //_customerService.SaveCustomer(this.CurrentCustomer);
                this.CurrentCart.Save();

                //send to billing
                return(RedirectToAction("Billing"));
            }
            else
            {
                //let error handling pick it up
                return(View("Shipping"));
            }
        }