Beispiel #1
0
        public async Task <IActionResult> CreateComment([FromBody] Comment comment)
        {
            // User user =new User();
            // user.userName = comment.userName;
            // user.userId = comment.userId;
            // await topicObj.AddUserToDBAsync(user);
            // await topicObj.AddCommentToDBAsync(comment);
            await topicObj.CreateComment(comment);

            return(Ok());
        }