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)
1,990 times
Add to favorites
E-mail Twitter Digg Facebook
Click an item in the panel on the left to view the contents here.