Пример #1
0
        public void CheckFirstName(ValidatorEventArgs validationArgs)
        {
            ValidationRule.IsNotEmpty(validationArgs);

            if (validationArgs.Status == ValidationStatus.Error)
            {
                validationArgs.ErrorText = "First name has to be provided";
            }
        }