public IEnumerable GetStories() { IStoryRepository storyRepository = new StoryRepository(); return(storyRepository.GetStories()); }
public async Task <ActionResult <StoryResponse> > Get([FromQuery] StoryParameters storyParameters) { StoryResponse response = new StoryResponse(); var result = await _storyRep.GetStories(storyParameters); response.Stories = result; response.Parameters = storyParameters; return(Ok(response)); }
public async Task <ActionResult> Index() { var stories = await repository.GetStories(); return(View(stories)); }