private void ButtonNewCustomer(object sender, RoutedEventArgs e) { Customer customer = new Customer(); CustomerProfile profile = new CustomerProfile(); customer.Name = NameInput.Text; profile.Street = StreetInput.Text; profile.City = CityInput.Text; profile.State = StateInput.Text; profile.Zip = ZipInput.Text; profile.ResponsibleParty = ResponsiblePartyInput.Text; profile.Email = EmailInput.Text; profile.Phone = PhoneInput.Text; CustomerViewModel customerViewModel = new CustomerViewModel(); customer.Id = customerViewModel.AddCustomer(customer, profile); customer.Created = DateTime.Now; LoadList(); DisplayProfile(customer); NewCustomerForm.Visibility = Visibility.Hidden; CustomerProfile.Visibility = Visibility.Visible; }