public virtual ActionResult Index([ModelBinder(typeof(FormModelBinder))] FormModel form) { Assert.ArgumentNotNull(form, "form"); if (this.FormManager == null) { return(null); } string returnUrl = System.Web.HttpContext.Current.Request["returnUrl"]; if (string.IsNullOrEmpty(returnUrl)) { returnUrl = HttpUtility.ParseQueryString(System.Web.HttpContext.Current.Request.UrlReferrer.Query)["returnUrl"]; } if (!string.IsNullOrEmpty(returnUrl)) { return(base.RedirectToRoute(MvcSettings.SitecoreRouteName, new { pathInfo = returnUrl.TrimStart(new char[] { '/' }) })); } return(InnerController.Index(form)); }
public override ActionResult Index() { return(InnerController.Index()); }