public bool DeleteServer(int ServerID) { objclsBALApplication = new clsBALApplication(); bool flag = objclsBALApplication.DeleteServer(ServerID, objclsEALLoggedInUser.StrUserADID); if (flag == true) { lblError.Text = "Server is associated with share."; } else { lblSuccess.Text = "Server deleted successfully."; } return(flag); }