Exemplo n.º 1
0
        public async Task <ActionResult> NewsSitemapXml()
        {
            var canonicalLinkUrl = ViewBag.MetaDataViewModel.BaseAddress;

            var xml = await _sitemapService.GetNewsSitemapDocument(canonicalLinkUrl);

            return(this.Content(xml, "xml", Encoding.UTF8));
        }