public async Task Insert(Question question)
 {
     _context.Questions.Add(question);
     await _context.SaveChangesAsync();
 }
Example #2
0
 public async Task Insert(Answer answer)
 {
     _context.Answers.Add(answer);
     await _context.SaveChangesAsync();
 }