title: calling asp.net mvc 5 web api in asp.net core, FromBody always null
body: <p>When I call the asp.net mvc 5 web api in Asp.net Core the input parameter FromBody always is null</p>
  
  <p>asp.net Mvc 6 web api</p>
  
  <pre><code>public void Post([FromBody]string id)
  {
  
  }
  </code></pre>
  
  <p>calling web api in asp.net core</p>
  
  <pre><code>using (var client = new HttpClient())
    {
        string stringData = JsonConvert.
        SerializeObject("test");
        var contentData = new StringContent(stringData, System.Text.Encoding.UTF8,"application/json");
        HttpResponseMessage response1 = client.PostAsync("http://localhost:49741/api/values/", contentData).Result;      
    }
  </code></pre>