mercredi 5 août 2015

How to trim all strings in a model in Web Api before model is validated?

I'm aware of the following Trim Model Binder example for MVC, but how to do the same for Web Api? ASP.NET MVC: Best way to trim strings after data entry. Should I create a custom model binder?




Aucun commentaire:

Enregistrer un commentaire