Data annotation range between 0 and 1 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}.")]