I want to get json from body of request.
This code is working :
public ActionResult SaveConfiguration()
{
var input = new StreamReader(HttpContext.Request.InputStream).ReadToEnd();
}
But if I add a binding (from uri) in my action, that not works anymore...
public ActionResult SaveConfiguration(int id)
{
var input = new StreamReader(HttpContext.Request.InputStream).ReadToEnd();
}
I am using ASP.NET MVC (not ASP.NET Core)