public ActionResult ShowResult(FormCollection fc) { GraphProblemDb.Update(); int problemId = Convert.ToInt32(fc.GetValue("ResultId").AttemptedValue); Problem selected = GraphProblemDb.GetProblem(problemId); GraphProblemDb.CurrentProblem = selected; return(RedirectToAction("GraphListResult", "GraphListResult", GraphProblemDb.CurrentProblem)); }
public OutputResultController() { GraphProblemDb.Update(); }