public string GetSiteMapAsXml() { var siteMap = GetSiteMap(); return(_xmlSerializer.ToXmlString(siteMap)); }
public virtual ActionResult Index() { var viewModel = _siteMapService.GetSiteMap(); return(Content(_xmlSerializer.ToXmlString(viewModel), "text/xml")); }