Exemple #1
0
        public async Task <dynamic> CreateOrUpdate(CreateOrUpdateCommentDto input)
        {
            // Tạo comment trả về comment
            //var newComment = await _commentServiceAppService.CreateCommentAsync(input);
            //return CreatedAtAction("Gets", new { id = newComment.Id }, newComment)


            // Tạo comment trả về một danh sách các comment
            return(await _commentServiceAppService.CreateOrUpdateCommentAsync(input));

            //return CreatedAtAction("Gets", new { id = newComment.Id }, (await _commentServiceAppService.GetCommentsAsync(input.IsRecruiterWrite, newComment)));
        }