public List <ProjectCollection> GetProjectCollections(List <string> projectCollectionsIds) { var teamProjects = GetXmlCollections(); return(new List <ProjectCollection>(teamProjects .Where(tp => projectCollectionsIds.Any(id => string.Equals(id, tp.Attribute("Identifier").Value))) .Select(tp => ProjectCollection.FromServerXml(this.Server, tp)))); }
public List <ProjectCollection> GetProjectCollections() { var teamProjects = GetXmlCollections(); return(new List <ProjectCollection>(teamProjects.Select(t => ProjectCollection.FromServerXml(this.Server, t)))); }