public ActionResult ChangePointProblem(int problemId, string point) { switch (point) { case "+": _problemRepository.ChangePoint(problemId, 1); break; case "-": _problemRepository.ChangePoint(problemId, 0); break; default: return(RedirectToAction("Detail", new { id = problemId })); } return(RedirectToAction("Detail", new { id = problemId })); }