コード例 #1
0
 public ActionResult Index(TestingAct testingAct)
 {
     Session["TestingActId"]    = TestService.AddTestingAct(testingAct);
     testingAct.CurrentQuestion = testingAct.Test.GetNextQuestion(null);
     if (testingAct.CurrentQuestion != null)
     {
         return(RedirectToAction("Next", new { questionId = testingAct.CurrentQuestion.Id }));
     }
     else
     {
         return(RedirectToAction("Next", new { questionId = testingAct.CurrentQuestion.Id }));
     }
 }