コード例 #1
0
 //Grade test
 public string gradeTest(string[] answers, string courseID)
 {
     if (HttpContext.Session.GetString("username") != null)
     {
         string username = HttpContext.Session.GetString("username");
         string password = HttpContext.Session.GetString("password");
         MiscFunctions.takeATestFunctions takeATestFunctions = new MiscFunctions.takeATestFunctions();
         return(takeATestFunctions.gradeTest(username, password, courseID, answers));
     }
     else
     {
         return("didn't get passed home controller");
     }
 }