示例#1
0
        // GET: Admin
        public ActionResult Indexing()
        {
            if (!_services.Authorizer.Authorize(Permissions.ManageSitemap, T("Not allowed to manage sitemap")))
            {
                return(new HttpUnauthorizedResult());
            }

            var typeSettings = _sitemapService.GetIndexSettings();
            var customRoutes = _sitemapService.GetCustomRoutes();

            var model = new IndexingViewModel
            {
                ContentTypeSettings = typeSettings.OrderBy(q => q.DisplayName).ToList(),
                CustomRoutes        = customRoutes.ToList()
            };

            return(View(model));
        }