Exemple #1
0
        public async Task <ActionResult <Comment> > Create([FromQuery(Name = "VideoId")] string videoId, CommentRequest model)
        {
            var response = await _service.CreateCommentResponse(User, model, videoId);

            if (!response.Success)
            {
                return(Conflict(response.Message));
            }

            return(CreatedAtAction("GetById", new { id = response.Data.Id }, response.Data));
        }