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

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

            return(Ok(response));
        }