Пример #1
0
        public async Task <PagedResultDto <WalletActionDto> > GetListAsync(WalletActionListRequestDto input)
        {
            var totalCount = await _repository.GetCountAsync(CurrentUser.GetId(), input.RechargeProductId,
                                                             input.MinPaidAmount, input.MaxPaidAmount, input.CreationAfter, input.CreationBefore, input.Filter);

            var list = await _repository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount, CurrentUser.GetId(),
                                                      input.RechargeProductId, input.MinPaidAmount, input.MaxPaidAmount, input.CreationAfter, input.CreationBefore, input.Filter);

            return(new PagedResultDto <WalletActionDto>(
                       totalCount,
                       ObjectMapper.Map <List <WalletAction>, List <WalletActionDto> >(list)
                       ));
        }
Пример #2
0
 public virtual Task <PagedResultDto <WalletActionDto> > GetListAsync(WalletActionListRequestDto input)
 {
     return(_service.GetListAsync(input));
 }