Ejemplo n.º 1
0
 public QuestionWithAnswer GetQuestionById(int id)
 {
     if (id <= 0 || id > QuestionsWithAnswer.Count())
     {
         throw new ArgumentOutOfRangeException();
     }
     return(QuestionsWithAnswer.Find(id));
 }
Ejemplo n.º 2
0
 public void AddQuestion(QuestionWithAnswer question)
 {
     QuestionsWithAnswer.Add(question);
     SaveChanges();
 }