public async Task <ActionResult> NewsSitemapXml() { var canonicalLinkUrl = ViewBag.MetaDataViewModel.BaseAddress; var xml = await _sitemapService.GetNewsSitemapDocument(canonicalLinkUrl); return(this.Content(xml, "xml", Encoding.UTF8)); }
public async Task <ActionResult> NewsSitemapXml() { var canonicalLinkUrl = ViewBag.MetaDataViewModel.BaseAddress; var xml = await _sitemapService.GetNewsSitemapDocument(canonicalLinkUrl); return(this.Content(xml, "xml", Encoding.UTF8)); }