/// <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()); }