Пример #1
0
        public async Task <PaginatedItems <TestResultViewModel> > GetItemsAsync(
            Guid buildId, Status status, string filter, int pageSize, int pageIndex)
        {
            var paginatedItems =
                await _testResultRepository.GetPaginatedItems(buildId, filter, status, pageSize, pageIndex);

            var paginatedViewModel = new PaginatedItems <TestResultViewModel>(
                paginatedItems.PageIndex, paginatedItems.PageSize, paginatedItems.Count,
                Mapper.Map(paginatedItems.Data));

            return(paginatedViewModel);
        }