//returns true/false if two users are already friends or not public static bool checkIfAlreadyFriends(Int64 mitgliedA, Int64 mitgliedB) { using (DBEntities dbConnection = new DBEntities()) { int x = dbConnection.checkFriendship(mitgliedA, mitgliedB).First().Value; if (x >= 1) { return false; } else { return true; } } }