public static void SetValue(TempInfo temp) { HttpContext.Current.Session[key] = temp; }
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 }); } }