Exemple #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));
        }
        public IActionResult CommentExists(int userId, int postId)
        {
            var exists = _postCommentService.PostCommentExist(userId, postId);

            CommentForReturnDTO model = new CommentForReturnDTO();

            model.Exists = exists.Data;

            return(Ok(model));
        }