public IActionResult EditQuestionVotes(string command, int questionId) { try { var newQuestion = _questionsService.EditQuestionVotes(command, questionId); return(Ok(newQuestion)); } catch (Exception) { return(BadRequest()); } }
public IActionResult EditQuestionVotes(string command, int id) { var newQuestion = _questionsService.EditQuestionVotes(command, id); return(RedirectToAction(nameof(Index))); }