public ActionResult ChangeAddress(Address address)
        {
            var command = new ChangeCustomerAddressCommand(
                address.Id,
                address.AddressLine1,
                address.AddressLine2,
                address.City,
                address.StateProvince,
                address.PostalCode,
                address.CountryRegion);

            this.commandProcessor.Process(command);

            return(View(address));
        }
        public ActionResult AddressChange(ChangeAddressModel viewModel)
        {
            var address = new Address(viewModel.AddressLine1,
                                      viewModel.AddressLine2,
                                      viewModel.City,
                                      viewModel.StateProvince,
                                      viewModel.PostalCode,
                                      viewModel.CountryRegion);

            var command = new ChangeCustomerAddressCommand(address, viewModel.customer_id);

            this.commandProcessor.Process(command);

            return View(viewModel);
        }
        public ActionResult ChangeAddress(Address address)
        {
            var command = new ChangeCustomerAddressCommand(
                                                           address.Id,
                                                           address.AddressLine1,
                                                           address.AddressLine2,
                                                           address.City,
                                                           address.StateProvince,
                                                           address.PostalCode,
                                                           address.CountryRegion);

            this.commandProcessor.Process(command);

            return View(address);
        }
        public ActionResult AddressChange(Address viewModel)
        {
            var command = new ChangeCustomerAddressCommand(
                                                           viewModel.Id,
                                                           viewModel.AddressLine1,
                                                           viewModel.AddressLine2,
                                                           viewModel.City,
                                                           viewModel.StateProvince,
                                                           viewModel.PostalCode,
                                                           viewModel.CountryRegion);

            var results = this.commandProcessor.Process(command);

            if (results.Success)
            {
                return this.RedirectToAction(x => x.Index());
            }

            return View(viewModel);
        }