コード例 #1
0
        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());
        }
コード例 #2
0
        public async Task <PartialCollectionResponse <UserResponse> > GetAllUsers(CollectionPageRequest request)
        {
            var users = await _userService.GetAsync(request.Offset, request.Count);

            return(users.ToPartialCollectionResponse(UserResponse.Create));
        }
コード例 #3
0
        public async Task <PartialCollectionResponse <FeedbackResponse> > GetAsync(CollectionPageRequest request)
        {
            var feedbacks = await _feetbackService.GetAsync(request.Offset, request.Count);

            return(feedbacks.ToPartialCollectionResponse(FeedbackResponse.Create));
        }