Exemplo n.º 1
0
 public Question CreateQuestion(ApplicationDbContext _db, Question question)
 {
     if (_QuestionRepo.ExistingQuestion(_db, question.QuestionString))
     {
         throw new ArgumentException("The question to be created already exists");
     }
     return(_QuestionRepo.CreateNewQuestion(_db, question));
 }