Inheritance: IXmlNamespaceProvider, IHasStyleSheets
コード例 #1
0
        /// <inheritDoc/>
        public ActionResult CreateSitemap(SitemapModel sitemapModel)
        {
            if (sitemapModel == null)
            {
                throw new ArgumentNullException(nameof(sitemapModel));
            }

            return(new XmlResult <SitemapModel>(sitemapModel, baseUrlProvider));
        }
コード例 #2
0
        /// <inheritDoc/>
        public ActionResult CreateSitemap(SitemapModel sitemapModel)
        {
            if (sitemapModel == null)
            {
                throw new ArgumentNullException(nameof(sitemapModel));
            }

            return new XmlResult<SitemapModel>(sitemapModel, baseUrlProvider);
        }
コード例 #3
0
        private ActionResult CreateSitemapInternal(HttpContextBase httpContext, List <SitemapNode> nodes)
        {
            SitemapModel sitemap = new SitemapModel(nodes);

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