예제 #1
0
        public IEnumerable <NewsVM> GetAllNews()
        {
            var news   = _news.FindAll();
            var newsVM = Map <IEnumerable <News>, IEnumerable <NewsVM> >(news);

            return(newsVM);
        }