Example #1
0
        public IActionResult PostComment([FromBody] CommentDto commentDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            bool rs = _commentLogic.PostComment(commentDto);


            if (rs == false)
            {
                return(NotFound());
            }
            return(Ok());
        }