It seems I can post a json object in the body with no trouble and bind it via [FromBody]. I can also post the header and bind it with [FromHeader(Name=...)]. But I can't use them together. Anyone know how or have another way of binding ether?
my Controller action method looks like this:
public JsonResult ProductQuery([FromHeader(Name = "Authorization")]string value, [FromBody] Product product)
When I do this I get the header in value but I don't get the body, I get a null in product
Thanks for your help!