C# Class Conduit.Api.Filters.ModelStateValidationActionFilterAttribute

Inheritance: ActionFilterAttribute
Datei anzeigen Open project: JoeyMckenzie/realword-dotnet-clean-architecture

Public Methods

Method Description
OnActionExecuting ( ActionExecutingContext context ) : void

Overrides the default model state validation from ASP.NET Core, passing any validation failures on request to API exceptions thrown here so they may be handled manually during the request pipeline.

Method Details

OnActionExecuting() public method

Overrides the default model state validation from ASP.NET Core, passing any validation failures on request to API exceptions thrown here so they may be handled manually during the request pipeline.
API exception handled by the pipeline
public OnActionExecuting ( ActionExecutingContext context ) : void
context ActionExecutingContext HTTP context passed from the web layer
return void