public async Task <IActionResult> GetCommentList(CommentForGetListDto dto) { var result = await _commentService.GetCommentList(dto); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public async Task <IDataResult <List <Comment> > > GetCommentList(CommentForGetListDto dto) { return(new SuccessDataResult <List <Comment> >(await _commentDal.GetListAsync(c => c.ArticleID == dto.ArticleId))); }