Skip to main content

Parameter validation using data annotations for REST services

An example of a WCF IErrorHandler implementation which can turn ValidationException errors (generated by the data annotation validation API) into a JSON payload, which can be easily consumed by JavaScript.

C# (109.8 KB)
2,011 times
Add to favorites
E-mail Twitter Digg Facebook