Beispiel #1
0
 public Answer AddAnswer(Answer Answer)
 {
     _db.Answers.Add(Answer);
     _db.SaveChanges();
     return(Answer);
 }
Beispiel #2
0
 public Question AddQuestion(Question Question)
 {
     _db.Questions.Add(Question);
     _db.SaveChanges();
     return(Question);
 }
 public Models.Quiz AddQuiz(Models.Quiz Quiz)
 {
     _db.Quizzes.Add(Quiz);
     _db.SaveChanges();
     return(Quiz);
 }