I am new to MVC 4. I have a model that has a property decorated with some range data annotation. Here is what I am trying to say.
[Range(0,11)]
[DisplayName("Height:Inch")]
public int HeightInch { get; set; }
Now here is my problem, when I try to test with single digit numbers it won't do anything until and unless I included 0 i.e. I have to make two digits to make it work. But if I test with 0 and 1 it will take it but 2 to 9 number doesn't take.
How can I format to make it work in single digit numbers?