예제 #1
0
        public IEnumerable <Posts> GetPosts()
        {
            var posts = iposts.GetPosts();

            return(posts);
        }
예제 #2
0
        public async Task <ActionResult <IEnumerable <PostDTO> > > GetPosts(string rol)
        {
            var response = await _postsDomain.GetPosts(rol);

            return(Ok(response));
        }