WeavyApiController.ThrowValidationException Method

Namespace:
Weavy.Web.Api.Controllers
Assembly:
Weavy.Web.dll

ThrowValidationException(HttpStatusCode, ModelStateDictionary)

Throws a HttpResponseException with the specified code and message.

public void ThrowValidationException(HttpStatusCode code, ModelStateDictionary modelState)

Parameters

code
System.Net.HttpStatusCode
modelState
System.Web.Http.ModelBinding.ModelStateDictionary