Ejemplo n.º 1
0
        public async Task <IActionResult> GetAllByPostIdAsync(int postId,
                                                              [FromHeader(Name = "userId")] int userId)
        {
            var posts = await _postCommentService.GetAllMainByPostIdAsync(postId, userId);

            return(Ok(posts));
        }