Ejemplo n.º 1
0
        public IActionResult GetComment(int commentId)
        {
            var comment = _repo.GetComment(commentId);

            if (comment == null)
            {
                return(NotFound());
            }

            return(Ok(ModelsMapping.GetCommentDto(comment)));
        }