I have a class that inherits from ApiController. It has a Put-method like this:
[PUT(\"user/{UserId}\")]
public HttpResponseMessage Put(string userId, Payme
You could read from the underlying request:
using (var stream = new MemoryStream())
{
var context = (HttpContextBase)Request.Properties["MS_HttpContext"];
context.Request.InputStream.Seek(0, SeekOrigin.Begin);
context.Request.InputStream.CopyTo(stream);
string requestBody = Encoding.UTF8.GetString(stream.ToArray());
}