private void signUpButton_Click(object sender, RoutedEventArgs e) { if (checkEnteredData()) { SQLQuery mSQLQuery = new SQLQuery(); Staff staff = new Staff(Convert.ToInt64(ID.Text), firstName.Text, lastName.Text, phoneNumber.Text, email.Text, -1, 1, "Staff", staffQualifications.Text); mSQLQuery.insertStaffData(staff, "Staff"); mSQLQuery.insertUser(username.Text, password.Password, "Staff", staff.id); MessageBox.Show("Requset has been sent", "Request sent", MessageBoxButton.OK, MessageBoxImage.None); } }