Three controllers are currently in use, all performing paged searches on data. Despite utilizing different base URLs, they share the same fundamental features including variables such as offset and pageSize, along with methods like search, next, and prev.
How can this functionality be efficiently shared between the controllers?
One potential solution could involve implementing a service, although uncertainty remains about whether or not this is the most effective approach.