public ActionResult <StoriesViewModel> GetStories() { var stories = storyRepository.AllIncluding(s => s.Owner); return(new StoriesViewModel { Stories = stories.Select(mapper.Map <StoryViewModel>).ToList() }); }
public ActionResult <StoriesViewModel> GetStories() { var stories = storyRepository.AllIncluding(s => s.Owner); return(new StoriesViewModel { Stories = stories.Select(mapper.Map <StoryViewModel>).ToList() }); }