public IActionResult AddComment(int postId, string text) { var success = _storage.AddComment(postId, User.Identity.Name, text); return(Json(success)); }
public int InsertEntity(Comment value) { return(_storage.AddComment(value)); }