예제 #1
0
        public async Task <PagedResultDto <UserCategoryDto> > GetListAsync(UserCategoryListRequestDto input)
        {
            var userId = input.UserId ?? CurrentUser.GetId();

            var totalCount = await _repository.GetCountAsync(userId, input.Filter);

            var list = await _repository.GetListAsync(input.MaxResultCount, input.SkipCount, input.Sorting, userId, input.Filter);

            return(new PagedResultDto <UserCategoryDto>(
                       totalCount,
                       ObjectMapper.Map <List <UserCategory>, List <UserCategoryDto> >(list)
                       ));
        }
예제 #2
0
 public Task <PagedResultDto <UserCategoryDto> > GetListAsync(UserCategoryListRequestDto input)
 {
     return(_service.GetListAsync(input));
 }