I need two ranges on an int in an MVC app
[Range(100, 200, ErrorMessage = "{0} must be between {1} and {2}")]
[Range(500, 600, ErrorMessage = "{0} must be between {1} and {2}")]
[Required(ErrorMessage = "Num Required")]
public int? Num { get; set; }
But only one Range DataAnnotation is allowed. How can I do this (ideally by using Data Annotations).
Can't find anything on Google.
thx.