C# Class Rebel.Cms.Web.Mvc.ActionFilters.MergeModelStateToChildActionAttribute

When a ChildAction is executing and we want the ModelState from the Parent context to be merged in to help with validation, this filter can be used.
By default, this filter will only merge when an Http POST is detected but this can be modified in the ctor
Inheritance: System.Web.Mvc.ActionFilterAttribute
Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
MergeModelStateToChildActionAttribute ( ) : System.Linq
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Method Details

MergeModelStateToChildActionAttribute() public method

public MergeModelStateToChildActionAttribute ( ) : System.Linq
return System.Linq

OnActionExecuting() public method

public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
return void