public CustomerAddressAddedEvent(string address1, string address2, string postCode, Address.AddressType addressType)
 {
     // TODO: Complete member initialization
     this.address1 = address1;
     this.address2 = address2;
     this.postCode = postCode;
     this.addressType = addressType;
 }
        public ActionResult RegisterAddress(Guid? aggregateRootId,string address1,string address2,string postCode,Address.AddressType addressType)
        {
            try
            {
                var addCustomerAddressCommand = new AddCustomerAddressCommand(aggregateRootId.Value, address1, address2, postCode, addressType);

                _cmdBus.Send(addCustomerAddressCommand);

                return RedirectToAction("Success");
            }
            catch (Exception err)
            {

                return RedirectToAction("Error", new { err = err.Message});
            }
        }