class PaginatedHandler<T> : IRequestHandler<PaginatedResultsDto<T>>query = _repo.SelectItemsquery.AddSearchtotalCount = query.Count()query.AddSort()query.skip().take()return totalCount, page, items etc.
var handler = new PaginatedHandler<ItemDto>(_repo, ...);