public ActionResult EditEntry(string url, string provider)
        {
            var entry           = _sitemapService.GetEntry(url, provider);
            var editRouteValues = _sitemapService.GetEntryMetadata(entry).EditRouteValues;
            var editUrl         = Url.RouteUrl(editRouteValues) + "?returnUrl=" + Url.Action("Index");

            return(Redirect(editUrl));
        }
Example #2
0
 public static SitemapEntry GetEntry(this ISitemapService service, string url, string provider)
 {
     return(service.GetEntry(x => x.Url == url && x.ProviderName == provider));
 }