The Range attribute can decorate any properties or public fields and specifies a range that a numerical field must fall between to be considered valid.
[Range(minimumValue, maximumValue)]
public int Property { get; set; }
Additionally, it accepts an optional ErrorMessage property that can be us...