コード例 #1
0
        public virtual async Task <PagedResultDto <PrivateMessageNotificationDto> > GetListAsync(PagedResultRequestDto input)
        {
            var count = await _repository.CountByUserIdAsync(CurrentUser.GetId());

            var list = await _repository.GetListByUserIdAsync(CurrentUser.GetId(), input.SkipCount,
                                                              input.MaxResultCount);

            return(new PagedResultDto <PrivateMessageNotificationDto>(count,
                                                                      ObjectMapper.Map <IReadOnlyList <PrivateMessageNotification>, IReadOnlyList <PrivateMessageNotificationDto> >(list)));
        }
コード例 #2
0
 public virtual async Task <IReadOnlyList <PrivateMessageNotification> > GetListAsync(Guid userId, int skipCount, int maxResultCount)
 {
     return(await _repository.GetListByUserIdAsync(userId, skipCount, maxResultCount));
 }