private void btnUpdateUser_Click(object sender, EventArgs e) { bool operationResult = AdminUserClass.userOperations("Update", txtUserId.Text, txtName.Text, txtSurname.Text, txtAddress.Text, txtEmail.Text, txtUserName.Text, txtPassword.Text, cbIsAdmin.Checked ? true : false); if (operationResult) { MessageBox.Show("User Updated successfully"); clearUserControls(); } else { MessageBox.Show("Error!"); } }
public override bool saveCustomer(string id, string name, string surname, string address, string email, string username, string password, bool isadmin) { bool operationResult = AdminUserClass.userOperations("Add", id, name, surname, address, email, username, password, isadmin); return(operationResult); }