Inheritance: IXmlNamespaceProvider, IHasStyleSheets
        /// <inheritDoc/>
        public ActionResult CreateSitemap(SitemapModel sitemapModel)
        {
            if (sitemapModel == null)
            {
                throw new ArgumentNullException(nameof(sitemapModel));
            }

            return(new XmlResult <SitemapModel>(sitemapModel, baseUrlProvider));
        }
        /// <inheritDoc/>
        public ActionResult CreateSitemap(SitemapModel sitemapModel)
        {
            if (sitemapModel == null)
            {
                throw new ArgumentNullException(nameof(sitemapModel));
            }

            return new XmlResult<SitemapModel>(sitemapModel, baseUrlProvider);
        }
        private ActionResult CreateSitemapInternal(HttpContextBase httpContext, List <SitemapNode> nodes)
        {
            SitemapModel sitemap = new SitemapModel(nodes);

            return(_sitemapActionResultFactory.CreateSitemapResult(httpContext, sitemap));
        }