コード例 #1
0
        public IHttpActionResult CommentExists(int userId, int postId)
        {
            var exists = _commentRepository.CommentExists(userId, postId);
            CommentForReturnDTO model = new CommentForReturnDTO();

            model.Exists = exists;

            return(Ok(model));
        }
コード例 #2
0
        public IActionResult CommentExists(int userId, int postId)
        {
            var exists = _postCommentService.PostCommentExist(userId, postId);

            CommentForReturnDTO model = new CommentForReturnDTO();

            model.Exists = exists.Data;

            return(Ok(model));
        }