public virtual System.Web.Mvc.ActionResult Execute(View.Page_Context pageContext, View.PagePositionContext positionContext) { var httpContext = pageContext.ControllerContext.RequestContext.HttpContext; if (httpContext.Request.HttpMethod.ToUpper() == "POST") { var site = pageContext.PageRequestContext.Site; var repository = site.GetRepository(); if (repository == null) { throw new SiteRepositoryNotExists(); } var folderName = pageContext.ControllerContext.RequestContext.GetRequestValue("FolderName"); if (!string.IsNullOrEmpty(folderName)) { var folder = FolderHelper.Parse <TextFolder>(repository, folderName); ByFolder(pageContext, positionContext, repository, folder); } else { var schemaName = pageContext.ControllerContext.RequestContext.GetRequestValue("SchemaName"); if (!string.IsNullOrEmpty(schemaName)) { var schema = new Schema(repository, schemaName); BySchema(pageContext, positionContext, repository, schema); } } } return(null); }
public System.Web.Mvc.ActionResult HttpPost(View.Page_Context context, View.PagePositionContext positionContext) { System.Web.Helpers.AntiForgery.Validate(); string redirectUrl; context.ControllerContext.Controller.ViewBag.ContactSuccess = ContactSiteCore(context.ControllerContext, null, out redirectUrl); if (!string.IsNullOrEmpty(redirectUrl)) { return(new RedirectResult(redirectUrl)); } return(null); }
public System.Web.Mvc.ActionResult HttpPost(View.Page_Context context, View.PagePositionContext positionContext) { SingOutCore(context.ControllerContext); var redirectUrl = MemberPluginHelper.GetReturnUrl(context.ControllerContext); if (string.IsNullOrEmpty(redirectUrl)) { redirectUrl = context.ControllerContext.HttpContext.Request.UrlReferrer.ToString(); } return(new RedirectResult(redirectUrl)); }
public System.Web.Mvc.ActionResult HttpGet(View.Page_Context context, View.PagePositionContext positionContext) { string redirectUrl; var isValid = ActivateCore(context.ControllerContext, null, out redirectUrl); if (isValid && !string.IsNullOrEmpty(redirectUrl)) { return(new RedirectResult(redirectUrl)); } context.ControllerContext.Controller.ViewBag.MembershipSuccess = isValid; return(null); }
public System.Web.Mvc.ActionResult HttpPost(View.Page_Context context, View.PagePositionContext positionContext) { System.Web.Helpers.AntiForgery.Validate(); var isValid = ChangePasswordCore(context.ControllerContext); var redirectUrl = MemberPluginHelper.GetReturnUrl(context.ControllerContext); if (isValid && !string.IsNullOrEmpty(redirectUrl)) { return(new RedirectResult(redirectUrl)); } context.ControllerContext.Controller.ViewBag.MembershipSuccess = isValid; return(null); }
public System.Web.Mvc.ActionResult HttpPost(View.Page_Context context, View.PagePositionContext positionContext) { System.Web.Helpers.AntiForgery.Validate(); ValidateMemberModel model; var isValid = LoginCore(context.ControllerContext, null, out model); if (isValid && !string.IsNullOrEmpty(model.RedirectUrl)) { return(new RedirectResult(model.RedirectUrl)); } context.ControllerContext.Controller.ViewBag.MembershipSuccess = isValid; return(null); }
public System.Web.Mvc.ActionResult HttpGet(View.Page_Context context, View.PagePositionContext positionContext) { return(null); }
public virtual System.Web.Mvc.ActionResult Execute(View.Page_Context pageContext, View.PagePositionContext positionContext) { return(null); }
public System.Web.Mvc.ActionResult HttpPost(View.Page_Context context, View.PagePositionContext positionContext) { System.Web.Helpers.AntiForgery.Validate(); return(HttpGet(context, positionContext)); }