title: How to ensure ASP.net Web API controller's parameter is not null?
body: <p>I created a ASP.net Web API controller like that:</p>
  
  <pre><code>public class UsersController : ApiController
  {
      //...
      public void Put([FromBody]User_API user, long UpdateTicks)
      {
          user.UpdateTicks = UpdateTicks;
          //...
      }
  }
  </code></pre>
  
  <p>The "user" parameter will be null if the client does not provide correct arguments. Can I make a global filter to check every parameter like this, and will return a 400 message if any error occurs.</p>