public async Task <SearchResult> FindAnswersForQuestion(PangulDbContext db, UserContext user, string questionId, int offset, int limit) { // Normally the offset would be passed to the search aggregate, but in this case we already deal with that in the query. var aggregate = new SearchResultAggregator(0, limit); var ids = await _getAnswerIds.Execute(db, new GetAnswerIds() { UserContext = user, QuestionId = questionId, Limit = limit, Offset = offset }); aggregate.Push(ids); return(aggregate.AsResult()); }