required attribute c# with 0 code example
Example: integer required asp.net core
[Range(1, int.MaxValue, ErrorMessage = "Value for {0} must be between {1} and {2}.")]
[Range(1, int.MaxValue, ErrorMessage = "Value for {0} must be between {1} and {2}.")]