public IActionResult EditResponseVotes(string command, int commentId) { try { var newComment = _commentsService.EditCommentVotes(command, commentId); return(Ok(newComment)); } catch (Exception) { return(BadRequest()); } }
public ActionResult EditCommentVotes(string command, int commentId) { var newComment = _commentsService.EditCommentVotes(command, commentId); return(RedirectToAction(nameof(GetComments), new { id = newComment.ResponseId })); }