예제 #1
0
        public IEnumerable GetStories()
        {
            IStoryRepository storyRepository = new StoryRepository();


            return(storyRepository.GetStories());
        }
예제 #2
0
        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));
        }
예제 #3
0
        public async Task <ActionResult> Index()
        {
            var stories = await repository.GetStories();

            return(View(stories));
        }