public IEnumerable<ModelClientValidationRule> GetClientValidationRules(ModelMetadata metadata, ControllerContext context) { ModelClientValidationRule rule = new ModelClientValidationRule(); rule.ValidationType = "salaryandloanconstraint"; rule.ValidationParameters.Add("loanconstraintvalue", _loanEligibleMultiplicity); rule.ErrorMessage = "Salary Insufficient to sanction a loan amount of"; return new ModelClientValidationRule[] { rule }; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)