MVC Decimal? Incremental Validation

80 views Asked by At

Is it possible, in addition to adding a range to an decimal? apply increments such as only divisible by 100 to be true?

[Required(ErrorMessage = "Amount is Required")]
[Range(1000, 25000, ErrorMessage = "Loan must be between 1000 and 25000")]
[DisplayName("Amount")]
public decimal? amount { get; set; }

Any help would be much appreciated :-)

0

There are 0 answers