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

            return(Json(success));
        }
Exemplo n.º 2
0
 public int InsertEntity(Comment value)
 {
     return(_storage.AddComment(value));
 }