public static ValidationNotification BetweenDateTimeIsValid <T, P>( this ValidationNotification source, T data, Expression <Func <T, P> > expression, IEnumerable <DateTime> options, CultureInfo cultureInfo = null) { return(source.BetweenDateTimeIsValid( data.GetStructureToValidate(expression), options, cultureInfo)); }
public static ValidationNotification BetweenDateTimeIsValid( this ValidationNotification source, object value, IEnumerable <DateTime> options, CultureInfo cultureInfo = null) { return(source.BetweenDateTimeIsValid(new StructureToValidate { Value = value, Display = Resource.DisplayValue, Reference = null }, options, cultureInfo)); }