I am building a small Web API for syncing data and pulling down the objects works great, but pushing my objects up doesn't work no matter what I have tried.
Edited to reflect some changes:
Here is my Controller:
[System.Web.Mvc.HttpPost]
    public void UpdateTasks([FromBody] string s)
    {
        Console.WriteLine(s);
    }
Here is my Client code:
HttpContent c = new StringContent("1234");
        HttpClient client = new HttpClient();
        c.Headers.ContentType = new MediaTypeHeaderValue("application/json");
        client.BaseAddress = new Uri("http://localhost/QAQC_SyncWebService/Tasks/UpdateTasks/");
        var resp = client.PostAsync(client.BaseAddress, c).Result;
I can get a value though if I put it in the URI, but the string content alone doesn't seem to work.
 
     
    