public async Task <DataWithCount <IEnumerable <Mail> > > GetUserInboxPaginatedAsync(int skip, int take) { var activeUserId = GetActiveUserId(); return(new DataWithCount <IEnumerable <Mail> > { Data = await _mailRepository.PageUserInboxAsync(activeUserId, skip, take), Count = await _mailRepository.GetUserInboxCountAsync(activeUserId) }); }