Lots of GET value parameters on multiple actions - should they be unified under the same object?

34 Views Asked by At

I've got a few GET actions that end up requiring 8 to 10 parameters, all abbreviated with attributes. Should I consider moving them to an object, and passing them with a [FromQuery] attribute, while everything else be defined inside them, or not?

From a performance perspective, I don't think there's any overheard on me defining the attributes on the method's parameters directly, versus passing an object.

0

There are 0 best solutions below