//Validate protected virtual ValidationResult ValidateIsActive(Int16 idCountry, Int16 isActive) { ValidationResult validationResult = new ValidationResult(true); try { //Create Validator based on its Key name : 'Keywords.UpdateCountry'. //The validator factory will create the validator object based on its key. ICountryValidator validator = (ICountryValidator)ValidatorFactory.Create(Keywords.UpdateCountry); //Execute validation process validationResult = validator.ValidateIsActive(idCountry, isActive); } catch { //The program will throw error if the validation object doesn't exist. And the default of validation result is true. } return(validationResult); }