//Lấy danh sách Brand và phân trang public async Task <PagedList <UserDetailDto> > GetWithPaginations(PaginationParams param) { var lists = _repoUserDetail.FindAll().ProjectTo <UserDetailDto>(_configMapper).OrderByDescending(x => x.ID); return(await PagedList <UserDetailDto> .CreateAsync(lists, param.PageNumber, param.PageSize)); }
public async Task <IQueryable <UserDetailDto> > Get() { var query = await _userDetailRepository.FindAll(); return(_mapper.Map <List <UserDetailDto> >(query).AsQueryable()); }