コード例 #1
0
        public async Task <IActionResult> Page(int page)
        {
            string TopicLinkGenerator(string id) => this.FullUrlHelper("Topic", ForumController.Name, new { id });

            var sitemap = await _sitemapService.GeneratePage(TopicLinkGenerator, page);

            return(Content(sitemap, "text/xml"));
        }