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))); }
public virtual async Task <IReadOnlyList <PrivateMessageNotification> > GetListAsync(Guid userId, int skipCount, int maxResultCount) { return(await _repository.GetListByUserIdAsync(userId, skipCount, maxResultCount)); }