How to use FromQueryAttribute get a complex object?
[HttpGet] public IActionResult Get([FromQuery] DataGridRequest request) { ... }
The
You can try a Get request like this
controller?Size=1&Index=2
Also try to use [FromUri] instead [FromQuery]. The [FromUri] attribute tries to bind the object properties to the query string properties by name
[FromUri]
[FromQuery]