title: WebAPI .NET - POST request filter by parameters
body: <p>I use POST to create <em>messages</em> and to update them (I need to use POST, not PUT). The API has the following instructions:</p>
  
  <p><code>POST /api/message</code></p>
  
  <p><code>POST /api/message?update_message</code></p>
  
  <p>How can I difference between both? Guess I have to do an <code>if</code> in the function:  </p>
  
  <pre><code>[HttpPost]
  [Route("api/message")]
  public async Task&lt;HttpResponseMessage&gt; Handle()
  {}
  </code></pre>
  
  <p>checking if the request contains the parameter update_message.</p>
  
  <p>Any idea on how to solve that? Thanks.</p>