title: How to return ModelState errors to Kendo grid in MVC Web API post method?
body: <p>I haven't been able to find an example of Kendo + MVC Web API where post/update methods return validation errors. It doesn't look like there is a Kendo extension that could make the following code work.</p>
  
  <pre><code>public HttpResponseMessage Post([ModelBinder(typeof(Prototype.WebApi.ModelBinders.DataSourceRequestModelBinder))][DataSourceRequest] DataSourceRequest request, User user)
      {
          if (this.ModelState.IsValid)
          {               
             //save               
          }
          return Request.CreateErrorResponse(HttpStatusCode.BadRequest, this.ModelState.ToDataSourceResult());            
      }
  </code></pre>
  
  <p>becaue ModelState in this context is System.Web.Http.ModelBinding.ModelStateDictionary and Kendo extensions expect System.Web.Mvc.ModelStateDictionary.</p>
  
  <p>So what is the best way to return ModelState errors from Web API to Kendo?</p>