예제 #1
0
        public IEnumerable <GetArticleView> GetAllArticlesWithGenres()
        {
            var articles       = articleRepository.GetAllArticlesWithGenres();
            var articlesMapped = Mapper.Map <IEnumerable <Article>, IEnumerable <GetArticleView> >(articles);

            return(articlesMapped);
        }