Revalidate Model When Using WebAPI (TryValidateModel equivalent)

asp.net, asp.net-mvc, asp.net-web-api

Solution

Turns out TryValidateModel is not supported in WebAPI. There's a feature request over on CodePlex.

Problem

Using vanilla MVC I can revalidate my model with TryValidateModel. The TryValidateModel method doesn't seem to be applicable to WebAPI. How can I revalidate my model when using WebAPI?

Original source

Related problems