public async Task <IPagination <MeasureQueryDto> > Handle(ListMeasureQueryRequest request, CancellationToken cancellationToken) { var pagination = await _measureRepository.ListAsync(request.Filter, request.OrderBy, request.Page, request.QtyPerPage); if (pagination.IsEmpty()) { return(Pagination <MeasureQueryDto> .Empty); } var measureDtos = MeasureMapper.Map(pagination.Entities); var paginationDto = Pagination <MeasureQueryDto> .New(measureDtos, pagination.TotalPages, pagination.ItemsPerPage, pagination.CurrentPage); return(paginationDto); }