Exemplo n.º 1
0
 public AcceptedValuesAttribute(string clientErrorMessage, bool enforceCasing, bool allowNull, params string[] acceptedValues)
 {
     Enforcer         = new StringEnforcer(acceptedValues, enforceCasing, allowNull);
     RejectionMessage = clientErrorMessage;
 }
Exemplo n.º 2
0
 public AcceptedValuesAttribute(DateTime?notBefore, DateTime?notAfter, bool allowNull, bool allowFutureDates, bool allowPastDates)
 {
     Enforcer = new DateEnforcer(notBefore, notAfter, allowNull);
 }
Exemplo n.º 3
0
 public AcceptedValuesAttribute(bool enforceCasing, bool allowNull, params string[] acceptedValues)
 {
     Enforcer = new StringEnforcer(acceptedValues, enforceCasing, allowNull);
 }