/// <summary> /// Updates the customer. /// </summary> /// <param name="name">The name.</param> /// <param name="gender">if set to <c>true</c> [gender].</param> /// <param name="addressId">The address id.</param> /// <param name="customerId">The customer id.</param> public void UpdateCustomer() { CustomerBE customer = new CustomerBE(); customer.CustomerId = View.CustomerId; customer.CustomerName = View.CustomerName; customer.CustomerGender = View.CustomerGender; AddressBE address = new AddressBE(); address.AddressId = View.CustomerAddressId; address.City = "City"; address.Country = "Country"; address.DetailAddress = "Detail"; address.Province = "Province"; customer.Address = address; _controller.UpdateCustomer(customer); }