public override BaseQuestion GetQuestion() { if (QuestionGuid.Equals(new Guid("00000000-0000-0000-0000-000000000000"))) { QuestionGuid = Guid.NewGuid(); } return(new ShortAnswerQuestion(ExamQuestion, QuestionGuid, ExamAnswer)); }
public override BaseQuestion GetQuestion() { if (Answer == "") { DataStore.ErrorCode = 10; } if (QuestionGuid.Equals(new Guid("00000000-0000-0000-0000-000000000000"))) { QuestionGuid = Guid.NewGuid(); } var question = new MultipleChoiceQuestion(Question, QuestionGuid, Answer, Options.ToList()); return(question); }