예제 #1
0
        public ActionResult SitemapXml()
        {
            var sitemapNodes = SitemapHelper.GetSitemapNodes();
            var xml          = sitemapNodes.GetSitemapDocument();

            return(this.Content(xml, "text/Xml", Encoding.UTF8));
        }
예제 #2
0
        public ActionResult Index()
        {
            ViewBag.Title = Localization.SiteNameSiteMap;
            var sitemapNodes = SitemapHelper.GetSitemapNodes(CultureHelper.GetCurrentCulture());
            var tree         = sitemapNodes.GetTreeNode();

            return(View(tree));
        }