Exemplo n.º 1
0
        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));
        }