public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)
        {
            string stringValue = GetBoundValue(value).ToString();

            if (stringValue.Count() != 10)
            {
                return(new ValidationResult(false, "Полето ЕГН не е валидно."));
            }
            if (stringValue.Count() == 10)
            {
                PatientService ps = new PatientService();
                if (ps.Exist(stringValue))
                {
                    return(new ValidationResult(false, "Има пациент със същото ЕГН !"));
                }
            }
            return(ValidationResult.ValidResult);
        }