Add model validator in Controller

Comparing #3 with #4

Revision #4 was created by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz) on Oct 23, 2014, 11:31:13 AM.

syntax

Content

There are cases that model validators arshould be depended by controller/action and you cannot
 
ouldn't manipulated on the model class or using scenarios in easy way

For example, when inserting a new record we want the controller/action to deside whether or not a validator (or more than one) should be applied.

So a robust way to do that is by insert a validator to the model on Controller/action
[...]