Пример #1
0
        //Lấy danh sách Brand và phân trang
        public async Task <PagedList <WorkerDto> > GetWithPaginations(PaginationParams param)
        {
            var lists = _repoWorker.FindAll().ProjectTo <WorkerDto>(_configMapper).OrderByDescending(x => x.ID);

            return(await PagedList <WorkerDto> .CreateAsync(lists, param.PageNumber, param.PageSize));
        }