public async Task <IActionResult> GetAllByPostIdAsync(int postId, [FromHeader(Name = "userId")] int userId) { var posts = await _postCommentService.GetAllMainByPostIdAsync(postId, userId); return(Ok(posts)); }
public async Task <IActionResult> GetAllByPostIdAsync(int postId, [FromHeader(Name = "userId")] int userId) { var posts = await _postCommentService.GetAllMainByPostIdAsync(postId, userId); return(Ok(posts)); }