// Don't do this. All of the following actions result in an exception.
[HttpPost]
public IActionResult Action1(Product product,
Order order) => null;
[HttpPost]
public IActionResult Action2(Product product,
[FromBody] Order order) => null;
[HttpPost]
public IActionResult Action3([FromBody] Product product,
[FromBody] Order order) => null;
https://docs.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-2.2#binding-source-parameter-inference