title: how to consume post data when content type isapplication/x-www-form-urlencoded .net core
body: <p>I have a use case where i need to accept <code>application/x-www-form-urlencoded</code> post data and also consume querystring</p>
  
  <pre><code>[httpPost]
  public void GetDetails([FromQuery] username)
  {
     using (var reader = new StreamReader(Request.Body))
     {
         try
         {
             var line = await reader.ReadToEndAsync();
         }
         catch(exception ex)
         {
           //Do something
         } 
     }
  }
  </code></pre>
  
  <p>For that when i try above <code>Request.Body</code> stream is <code>null</code>,</p>
  
  <p>I have a solution to remove <code>[FromQuery]</code> and read querystring via <code>Reqeust.QueryString</code> but do we have any other options</p>