/// <summary> /// Constructor. /// </summary> /// <param name="property">The property for which the rule will be enforced.</param> /// <param name="offset">The time offset from current date.</param> /// <param name="future">Flag that switches between the two modes of the rule: future dates if true, past dates if false.</param> public FutureOrPastDateRuleModel(DateTimePropertyModel property, TimeSpan offset, bool future = false) { Property = property; Offset = offset; Future = future; }
/// <summary> /// Constructor. /// </summary> /// <param name="property">The property for which the rule will be enforced.</param> /// <param name="offset">The time offset from current date.</param> /// <param name="future">Flag that switches between the two modes of the rule: future dates if true, past dates if false.</param> public FutureOrPastDateRuleModel(DateTimePropertyModel property, TimeSpan offset, bool future = false) { Property = property; Offset = offset; Future = future; }