Exemplo n.º 1
0
        /// <summary>
        ///     Returns a list of friends that play a game
        /// </summary>
        /// <param name="userId">id of user to check his friends</param>
        /// <param name="gameId">id of game that friends play</param>
        /// <returns>list of friend users</returns>
        public static List <User> FriendsThatPlayGame(int user, int game)
        {
            var tb = DbConnections.GetFriendsWhoPlayGame(user, game);

            return((from DataRow row in tb.Rows select new User(row)).ToList());
        }