public IActionResult EditComment([FromForm] Comment comment) { bool UpdateCommented = _commentService.UpdateComment(comment); if (UpdateCommented) { return(Json(new { status = 200, message = "Update complete" })); } return(Json(new { status = 500, message = "Update failed" })); }