コード例 #1
0
        public async Task <ActionResult> GetEventComment(int id, int commentId)
        {
            var comment = await _repo.GetCircleEventComment(commentId);

            var eventCommentForReturn = this._mapper.Map <CircleEventCommentForReturnDto>(comment);

            eventCommentForReturn.ReplyCount = await _repo.GetCircleEventCommentReplyCount(comment.Id);

            return(Ok(eventCommentForReturn));
        }
コード例 #2
0
        public async Task <ActionResult> Get(int id)
        {
            var circleEventCommentForReturn = _mapper.Map <CircleEventCommentForReturnDto>(await _repo.GetCircleEventComment(id));

            circleEventCommentForReturn.ReplyCount = await _repo.GetCircleEventCommentReplyCount(id);

            return(Ok(circleEventCommentForReturn));
        }