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)
 
 
 
 
 
(0)
1,974 times
Add to favorites
6/7/2011
E-mail Twitter del.icio.us Digg Facebook
Click an item in the panel on the left to view the contents here.