Beispiel #1
0
        public Blog GetAllBlogPosts()
        {
            var blogPosts = _blogRepository.GetAll();

            var blog = new Blog();

            blog.Posts = _dataFactory.BlogPostsViewModel(blogPosts);

            return(blog);
        }