public IActionResult AddComment(int postId, string text)
        {
            var success = _storage.AddComment(postId, User.Identity.Name, text);

            return(Json(success));
        }
Exemple #2
0
 public int InsertEntity(Comment value)
 {
     return(_storage.AddComment(value));
 }