protected void btnFixOrphan_Click(object sender, EventArgs e) { using (SiteMapOrderHelper orderHelper = new SiteMapOrderHelper()) { orderHelper.FixOrphanPages(SiteID); } Response.Redirect(SiteData.CurrentScriptName); }
public ActionResult FixOrphan() { using (SiteMapOrderHelper orderHelper = new SiteMapOrderHelper()) { orderHelper.FixOrphanPages(this.SiteID); } return RedirectToAction("SiteMap"); }