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

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -