public async Task <IActionResult> GetCommentList(CommentForGetListDto dto)
        {
            var result = await _commentService.GetCommentList(dto);

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