I'm working on small web app, and when it comes about controllers / endpoints, I saw on many please that
some people are adding [FromBody]
attribute in method parameters and some not.
I can't figure out what is the point ?
Here is the example:
public async Task<ActionResult> UploadImages([FromBody] ProductImagesRequestDto productImagesRequestDto)
vs
public async Task<ActionResult> UploadImages(ProductImagesRequestDto productImagesRequestDto)
Is this endpoint the same?
What is difference in this two methods definitions if there are any ... ?
Thanks everyone
Cheers