When does the FromBody property before passing parameters in Asp.Net post need to be added?

[HttpPost]
public Add ([FromBody] AddInput)
{
}
in a project, some of the parameters passed in the post method are added with [FromBody], and some do not have
, so when do you want to add the FromBody attribute

?
Mar.24,2021

webapi seems to be used more often, and it seems that json can be directly converted into a model

.
Menu