DEV Community

Discussion on: Business Rules Must Be Enforced by the API

Collapse
 
asynccrazy profile image
Sumant H Natkar

Asp.Net MVC really provides a clean way to implement these validations on server as well as the client side, and it does with using the DRY principle.

It allows us to use data annotations on the model which can be validators, and they are triggered on both client and server.

Collapse
 
imwiss profile image
Wissam A

That's great, thanks Sumant. I haven't touched ASP.NET in a little while, I'd have to get back into it and play with this.