Пример #1
0
        public async Task <IActionResult> AddComment(Guid id, [FromBody] AddComment command)
        {
            var comment = await _remarkService.AddCommentAsync(command);

            var dto = new CommentDto
            {
                Id       = comment.Id,
                AuthorId = comment.AuthorId,
                Status   = comment.Status.ToString(),
                Text     = comment.Text
            };

            return(Ok(dto));
        }