title: Mandatory and valid parameter in WebAPI request
body: <p>can I somehow mark property in my "input object" that goes to action as being mandatory and that it needs to be valid. I.e. if I have:</p>
  
  <pre><code>public class MyInput
  {
    //[SuperNeeded]
    public int FooBar { get; set; }
    public string Other { get; set; }
  }
  </code></pre>
  
  <p>I'd like to ASP.NET stack throw an exception when request without FooBar or when FooBar isn't number comes. These are valid:</p>
  
  <pre><code>FooBar=1&amp;Other=abc
  FooBar=3
  </code></pre>
  
  <p>But these are not (don't want FooBar to be 0):</p>
  
  <pre><code>FooBar=abc&amp;Other=abc //FooBar is not number
  Other=abc //FooBar is missing
  </code></pre>
  
  <p>Any ideas how to easily do it?</p>