public ActionResult ReadFromDb(FormCollection fc) { int gId = Convert.ToInt32(fc.GetValue("GraphId").AttemptedValue); GraphProblemDb.CurrentProblem.Graph = GraphProblemDb.GetGraph(gId); return(RedirectToAction("OutputEditGraph", GraphProblemDb.CurrentProblem.Graph)); }
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 ActionResult SaveToDb() { GraphProblemDb.AddProblem(GraphProblemDb.CurrentProblem); return(View("GraphListResult", GraphProblemDb.CurrentProblem)); }
public ActionResult SaveToDb() { GraphProblemDb.AddGraph(GraphProblemDb.CurrentProblem.Graph); return(View("OutputEditGraph", GraphProblemDb.CurrentProblem.Graph)); }
public OutputResultController() { GraphProblemDb.Update(); }