Server Side Validation

Topics: Customizing Orchard, General, Writing modules
Jun 21, 2011 at 10:10 PM
Edited Jun 21, 2011 at 10:11 PM


I have data annotation validation on my viewmodels/models and its working pretty good. Now, I would like to add some more complex custom validations within my service layer.

I have read the article "Validating with a Service Layer" on ( but I didn't understand how to establish the connection between modelstate and the service in my custom Orchard module.

On the other hand I have suspects if this is the way to go for server side validation in Orchard.

Need help.

Thank you.