Ejemplo n.º 1
0
        public async Task <IActionResult> BlogPostList()
        {
            var blogPostList = await _blogPostRepository.GetBlogPostList();

            var blogPostListDto = new BlogPostListDto
            {
                BlogPosts = blogPostList.ToList()
            };

            return(Ok(blogPostListDto));
        }