range decimal c# data annotation code example
Example: max value data annotation c#
[Range(0.0, Double.MaxValue, ErrorMessage = "The field {0} must be greater than {1}.")]
[Range(0.0, Double.MaxValue, ErrorMessage = "The field {0} must be greater than {1}.")]