Custom Validator and specifying type of message
- by user102533
I have a custom validation in the enterprise validation block. The DoValidate method is as shown below.
protected override void DoValidate(Double objectToValidate, object currentTarget, string key, ValidationResults validationResults)
{
if (!IsSalMoreThanMinWage(objectToValidate))
{
//Here I need to mark this message as a "Warning"
…