public int correctQuestion(IExams StudentAnswer) { char questionAnswer = getAnswerByquestionId(StudentAnswer.Exmas_Question.QuestionID); int result = 0; if (questionAnswer == StudentAnswer.Exmas_Question.selectedAnswer) result = 1; return result; }
public void AddQuiz(IExams Quiz) { Quizs.Add(Quiz); }