title: Dynamic binding model for use in HttpClient
body: <p>I have a Web Api that takes a <code>complex</code> object and adds it to the database. </p>
  
  <pre><code>var myWidgit= new Widgit() { 
    Name = "WidgitName", 
    Price = 50, 
    Category = "Appliance" };
  
  HttpResponseMessage response = client.PostAsync("api/createwidgit", myWidgit);
  </code></pre>
  
  <p>I need to make a one off call to the API and I would like to avoid creating a separate class file for <code>Widgit</code>.</p>
  
  <p>Is there a way to define the <code>Widgit</code> class and assign it values in the method that makes use of it? Sort of like a <code>dynamic</code> class just used in this method.</p>