private static NuGetPackageMetadataDto GetNuGetPackageMetadata(NuGetIndexDto nuGetIndex) { var packageMetadataService = nuGetIndex.Resources.First(r => r.Type == NuGetResources.PackageMetadata); return(LoadDto <NuGetPackageMetadataDto>($"{packageMetadataService.Id.Trim('/')}/{PackageId.ToLower()}/index.json")); }
private static NuGetPackageSummaryDto GetNuGetPackageSummary(NuGetIndexDto nuGetIndex) { var searchQueryService = nuGetIndex.Resources.First(r => r.Type == NuGetResources.SearchQuery); return(LoadDto <NuGetPackageSummaryDto>(searchQueryService.Id, ("q", $"PackageId:{PackageId}"))); }