Class 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.
Inheritance
System.Object
Namespace: Umbraco.Web.Mvc
Assembly: Umbraco.Web.dll
Syntax
public class MergeModelStateToChildActionAttribute : ActionFilterAttribute
Remarks
By default, this filter will only merge when an Http POST is detected but this can be modified in the ctor
Constructors
View SourceMergeModelStateToChildActionAttribute()
Declaration
public MergeModelStateToChildActionAttribute()
MergeModelStateToChildActionAttribute(HttpVerbs[])
Declaration
public MergeModelStateToChildActionAttribute(params HttpVerbs[] verb)
Parameters
Type | Name | Description |
---|---|---|
HttpVerbs[] | verb |
Methods
View SourceOnActionExecuting(ActionExecutingContext)
Declaration
public override void OnActionExecuting(ActionExecutingContext filterContext)
Parameters
Type | Name | Description |
---|---|---|
ActionExecutingContext | filterContext |