title: Range data annotation not working
body: <p>In my web api project I have </p>
  
  <pre><code>[HttpPost]
      public void Post([FromBody]AccountDTO accountDto)
  </code></pre>
  
  <p>AccountDto include some properties, for example:</p>
  
  <pre><code>public int AccountId { get; protected set; }
      [Range(0,100)]
      public int AccountBalance { get; protected set; }
      [RegularExpression(COMMA_SEPARATED_EMAILS_REGEX)]
      public string Emails { get; set; }
  </code></pre>
  
  <p>I also added filter to catch model errors:</p>
  
  <pre><code>public void OnActionExecuting(ActionExecutingContext context)
      {
          if (!context.ModelState.IsValid)
          {
              throw new InvalidDataException(string.Join(" ", context.ModelState.Keys.SelectMany(key =&gt; context.ModelState[key].Errors.Select(x =&gt; key + ": " + x.ErrorMessage))));
          }
      }
  </code></pre>
  
  <p>Now, if the email string not valid - it throw the expected error, also I tried <code>[EmailAddress], [Phone], [Required], [StringLength(3)]</code>, and all working OK.
  just [Range(0,100)] not working...</p>
  
  <p>I tried post AccountDTO with accountBallance = 50033333 and no error thrown, also tried -5 and I got status 200. </p>
  
  <p>where should I look for the bug?... thanks</p>