Ejemplo n.º 1
0
        /// <summary>
        /// Returns all friends for a certain user
        /// </summary>
        /// <param name="user">id of user</param>
        /// <returns></returns>
        public static List <User> GetFriends(int user)
        {
            var tb = DbConnections.GetFriendsOfUser(user);

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