private void BtnAdminResetPassword_Click(object sender, EventArgs e) { string newPass = TextBoxAdminPasswordReset.Text; //check if empty if (newPass.Length <= 0) { MessageBox.Show("please fill in the admin new password textbox "); return; } //bool result = userLogic.updateUserPassword(user.Id, newPass); bool result = dtFunc.getBool(ws.updateUserPassword(user.Id, newPass)); if (result) { MessageBox.Show("Password updated to: " + newPass); } else { MessageBox.Show("db returned false their was an error."); } }