public bool CheckIfBetExists(int matchID, int userID) { bool result; int betExists = betrep.CheckBet(matchID, userID); if (betExists == 0) { result = false; } else { result = true; } return(result); }