public async Task <IActionResult> GetComment(CommentForGetDto dto) { var result = await _commentService.GetComment(dto); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public async Task <IDataResult <Comment> > GetComment(CommentForGetDto dto) { return(new SuccessDataResult <Comment>(await _commentDal.GetAsync(c => c.Id == dto.Id))); }