C# Class Solita.Episerver.WebApi.Attributes.ValidateWebApiModelAttribute

Checks if any of the parameters is null or has bad modelstate. Returns HttpStatusCode.BadRequest in both cases. It is strongly advised to use dto objects, and hide your possible null objects to the model object.
Inheritance: System.Web.Http.Filters.ActionFilterAttribute
Afficher le fichier Open project: solita/episerver-webapi

Méthodes publiques

Méthode Description
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext ac ) : void

Method Details

OnActionExecuting() public méthode

public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext ac ) : void
ac System.Web.Http.Controllers.HttpActionContext
Résultat void