A complex type parameter packages related action inputs into one object, allowing each property to bind and validate like an individual simple parameter. section 6.1.5
Use a DTO when an action needs several related inputs:
- Create a RequestDTO with properties such as PageIndex, PageSize, SortColumn, SortOrder, and FilterQuery. section 6.1.5
Board-game listing request
The Get action reads input.PageIndex, input.PageSize, input.SortColumn, input.SortOrder, and input.FilterQuery to construct a paginated, filtered, sorted query.
