public IActionResult GetComments([FromRoute] Guid articleId) { var comments = _commentLogic.GetComments(articleId); if (comments == null) { return(NotFound()); } return(Ok(comments)); }
public async Task <List <CommentDTO> > GetCommentsAsync() { return(await _commentLogic.GetComments()); }