title: RestSharp JSON Parameter Posting
body: <p>I am trying to make a very basic REST call to my MVC 3 API and the parameters I pass in are not binding to the action method.</p>
  
  <p><strong>Client</strong></p>
  
  <pre><code>var request = new RestRequest(Method.POST);
  
  request.Resource = "Api/Score";
  request.RequestFormat = DataFormat.Json;
  
  request.AddBody(request.JsonSerializer.Serialize(new { A = "foo", B = "bar" }));
  
  RestResponse response = client.Execute(request);
  Console.WriteLine(response.Content);
  </code></pre>
  
  <p><strong>Server</strong></p>
  
  <pre><code>public class ScoreInputModel
  {
     public string A { get; set; }
     public string B { get; set; }
  }
  
  // Api/Score
  public JsonResult Score(ScoreInputModel input)
  {
     // input.A and input.B are empty when called with RestSharp
  }
  </code></pre>
  
  <p>Am I missing something here?</p>