public object ListQuery(string query) { var packages = new List <IPackage>(); SourcesToQuery.ForEach(src => packages.AddRange(src.GetPackagesWithIdStartingWith(query))); return(ListPackages(packages)); }
public object ListAll() { var packages = new List <IPackage>(); SourcesToQuery.ForEach(src => packages.AddRange(src.Packages)); return(ListPackages(packages)); }