public async Task <List <Story> > NewestStories(int limit = 10) { List <int> storyIndex = await storyClient.IndexItems("newstories", limit); List <Story> stories = await storyClient.GetItemsForIndex(storyIndex.Take(limit).ToList()); return(stories); }
public async Task <List <Comment> > StoryComments(int storyId) { Story story = await storyClient.GetItemById(storyId); List <Comment> storyComments = await commentClient.GetItemsForIndex(story.CommentIndex); return(storyComments); }