79115278

Date: 2024-10-22 18:01:33
Score: 2
Natty:
Report link

You have to specify from what part of query your object should be constructed. Url.Action pass parameters to uri, so probably you need that ([FromUri] added):

public IActionResult GetDocuments([FromUri]AreaVM area)

Read this for more details: https://learn.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/parameter-binding-in-aspnet-web-api#using-fromuri

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex Scherbinin