I have a question, When I apply a validation attribute (which is having associated validator to it) twice on a property, for eg I have number1 which should be lesser than number2 and number3. so I apply something like below.
[LessThan("Number2",ErrorMessage="Error Message1")]
[LessThan("Number3",ErrorMessage="Error Message2")]
public int Number1
problem here is when it evaluates Number1 < Number3 to true, then it is not checking for Number1 <Number2, it assumes that validation for the whole field is passed. How can we ensure, we go through each validation (attribute rule) and make sure the correct Validation error is returned.