Пример #1
0
 public IActionResult AddComment(Comment comment)
 {
     if (comment != null)
     {
         Comment result = _commentManager.AddEntity(comment);
         return(Json(new { code = 0, count = 1, msg = "成功", data = result }));
     }
     return(Json(new{ code = 0, count = 1, msg = "失败", data = new { } }));
 }