private void DeleteOrganisationButton_Click(object sender, EventArgs e) { AdminService adminService = new AdminService(); int result = adminService.DeleteUser(Convert.ToInt32(SearchOrganisationTextBox.Text)); if (result > 0) { MessageBox.Show("User Deleted Successfully"); AdminHome adminHome = new AdminHome(); this.Hide(); adminHome.Show(); } else { MessageBox.Show("Error"); AdminHome adminHome = new AdminHome(); this.Hide(); adminHome.Show(); } }