public ActionResult Indexing(IndexingPageModel model)
        {
            if (!_services.Authorizer.Authorize(Permissions.ManageSitemap, T("Not allowed to manage sitemap")))
                return new HttpUnauthorizedResult();

            if (model.CustomRoutes == null) {
                model.CustomRoutes = new List<CustomRouteModel>();
            }

            _sitemapService.SetIndexSettings(model.ContentTypeSettings);
            _sitemapService.SetCustomRoutes(model.CustomRoutes);

            _services.Notifier.Add(NotifyType.Information, T("Saved Sitemap indexing settings"));
            return RedirectToAction("Indexing");
        }
        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 IndexingPageModel {
                ContentTypeSettings = typeSettings.OrderBy(q => q.DisplayName).ToList(),
                CustomRoutes = customRoutes.ToList()
            };

            return View(model);
        }