protected override ValidationResult IsValid(object value, ValidationContext validationContext)
        {
            var finalValue = validationContext.ObjectType.GetProperty(fieldName).GetValue(validationContext.ObjectInstance, null).ToString();

            if (finalValue != valueToCompare || (rangeAttribute.GetValidationResult((value as String).Replace('.', ','), validationContext) == ValidationResult.Success))
            {
                return(ValidationResult.Success);
            }

            return(new ValidationResult(
                       this.FormatErrorMessage(validationContext.DisplayName)));
        }
    protected override ValidationResult IsValid(object value, ValidationContext validationContext)
    {
        RangeAttribute attr = this.CreateRangeAttribute(validationContext.ObjectInstance);

        return(attr.GetValidationResult(value, validationContext));
    }