I read about the binding of models in asp.net and came across this obzats:
Only one parameter in the action method can add [FromBody]. ASP.NET Core MVC passes responsibility for reading the request stream to the formatter. After reading the stream, it cannot read the stream again to bind other [FromBody] parameters.
Why is that? And suppose I send the following line to the server: {"value":"1"} - should I create a separate class for it to accept it? Because public void Post([FromBody]int value) does not work