public async Task <ActionResult> Badge(string packageName, bool includePreReleases = false) { var packageInfo = await _nugetClient.GetPackageInfo(packageName, includePreReleases); var viewModel = new PackageBadgeViewModel("nuget", _badgeConfig, packageInfo); Response.ContentType = "image/svg+xml"; return(View(viewModel)); }
public async Task <ActionResult> Badge(string feedName, string packageName) { var packageInfo = await _mygetClient.GetPackageInfo(feedName, packageName); var viewModel = new PackageBadgeViewModel("myget", _badgeConfig, packageInfo); Response.ContentType = "image/svg+xml"; return(View(viewModel)); }