my solution is to run thrue all events and after run thrue events users and compare users, do you have better one!? Couse this takes time to run thrue all thouse loops: here is my own solution:
public List<String> getUserAtendedEvents(String userEmail)
{
// get all upcoming Events Sco ID's
var scoIds = getAllEventsDataToClass().ScoIds;
List<String> userEvents = new List<string>();
// request Connect for Event info
// action=report-event-participants-complete-information&sco-id=1418245799
for (int i = 0; i < scoIds.Count; i++)
{
XDocument req = RequestXDoc("report-event-participants-complete-information", "sco-id=" + scoIds[i]);
var emails = req.Descendants().Attributes("login"); // ---- login emails
foreach (var email in emails)
{
if (email.Value.Equals(userEmail))
{
userEvents.Add(scoIds[i]);
}
}
}
return userEvents;
}