public IEnumerable <BugzillaBugInfo> GetAllBugzillaBugs(IEnumerable <int> tpBugs) { var storageNames = tpBugs .Select(x => new StorageName(x.ToString())) .ToArray(); return(_profiles .Select(profile => new { Bugs = profile.Get <BugzillaBugInfo>(storageNames), BugzillaUrl = GetBugzillaUrlForProfile(profile) }) .SelectMany(x => x.Bugs.Select(bugInfo => SetBugUrl(bugInfo, x.BugzillaUrl))) .ToList()); }
protected virtual IEnumerable <ImportedRevisionInfo> GetImportedRevisionIds(IEnumerable <int> tpRevisionIds) { var storageNames = tpRevisionIds .Select(x => new StorageName(x.ToString())) .ToArray(); return(_profiles .Select( profile => new { Revisions = profile.Get <RevisionIdRelation>(storageNames), Profile = profile }) .SelectMany( x => x.Revisions.Select(rev => new ImportedRevisionInfo { Profile = x.Profile, RevisionId = rev })) .ToList()); }