/// <summary> /// gets all incoming friend requests /// </summary> /// <param name="userId">id of user</param> /// <returns>list of incoming friend requests</returns> public static List <User> IncomingFriendRequests(int user) { var tb = DbConnections.IncomingRequests(user); return((from DataRow row in tb.Rows select new User(row)).ToList()); }