示例#1
0
 public static void SetValue(TempInfo temp)
 {
     HttpContext.Current.Session[key] = temp;
 }
示例#2
0
 private void CheckAnswer(TempInfo tempInfo, int[] answerId, int qId)
 {
     if (questionService.AnsweredCorrectly(answerId, qId))
         tempInfo.CorrectAnswers++;
     else
     {
         List<int> ansId = new List<int>();
         if (answerId != null)
             ansId = answerId.ToList();
         tempInfo.IncorrectQuestions.Add(new IncorrectQuestion { Answers = ansId, QuestionId = qId });
     }
 }