private bool areTheyFriends() { areFriends = friendHld.checkIfFriend(currentlyLoggedUserID, visitedUserId); if (areFriends) { btnAddFriend.Text = "Unfriend"; } else { btnAddFriend.Text = "Add Friend"; } return(areFriends); }
}//end of searchUsers class private bool areTheyFriends(String visitedUserId) { areFriends = friendHld.checkIfFriend(currentlyLoggedUserID, visitedUserId); return(areFriends); }