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
Mostra file Open project: solita/episerver-webapi

Public Methods

Method Description
OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext ac ) : void

Method Details

OnActionExecuting() public method

public OnActionExecuting ( System.Web.Http.Controllers.HttpActionContext ac ) : void
ac System.Web.Http.Controllers.HttpActionContext
return void