asp.net mvc different validation rules for different actions -
What is the best practice to validate my model for various tasks, for example, to create and delete Separate verification rules?
For example
P> Valid use of person, name, age and email is not in use. Delete person believes that a person is a parent No business logic determines that parents can not be terminated
How can I get these two different recognition scenarios?
As I understand you want more control over your verification rules. You can manually add verification rules as described here: It gives you complete control over how you organize validity, which tasks, etc. The rules that add.
Comments
Post a Comment