private bool SaveCustomerChanges()
        {
            if (!CheckFields())
            {
                return(false);
            }

            var changedModel = new CustomerModel()
            {
                ID           = ((CustomerModel)selectedRow).ID,
                FirstName    = formCustomerFirstNameTextbox.Text.Trim(),
                LastName     = formCustomerLastNameTextbox.Text.Trim(),
                PhoneNumber  = formCustomerPhoneNumberTextbox.Text.Trim(),
                EmailAddress = formCustomerEmailAddressTextbox.Text.Trim(),
                Address      = $"{formCustomerHouseNumberNameTextbox.Text.Trim()}|{formCustomerPostCodeTextbox.Text.Trim()}"
            };

            bool changeEmail = customerPasswordTb.Visibility == Visibility.Visible;

            if (changeEmail)
            {
                if (formCustomerPasswordbox.Password == string.Empty)
                {
                    MessageBox.Show("You need to input the customer's password to change their email.", "No password entered!");
                }
                else
                {
                    return(DBAccessHelper.AlterUser(changedModel, ((CustomerModel)selectedRow).EmailAddress, formCustomerPasswordbox.Password));
                }
            }

            return(DBAccessHelper.AlterUser(changedModel));
        }