public async Task <PartialCollectionResponse <SubscriptionResponse> > Get(CollectionPageRequest request) { var subscriptions = await(from subscriber in _readContext.Subscriptions join project in _readContext.Projects on subscriber.ProjectId equals project.Id select SubscriptionResponse.Create(subscriber, project)) .GetPageAsync(request.Offset, request.Count); return(subscriptions.ToPartialCollectionResponse()); }
public async Task <PartialCollectionResponse <UserResponse> > GetAllUsers(CollectionPageRequest request) { var users = await _userService.GetAsync(request.Offset, request.Count); return(users.ToPartialCollectionResponse(UserResponse.Create)); }
public async Task <PartialCollectionResponse <FeedbackResponse> > GetAsync(CollectionPageRequest request) { var feedbacks = await _feetbackService.GetAsync(request.Offset, request.Count); return(feedbacks.ToPartialCollectionResponse(FeedbackResponse.Create)); }