public async Task AddAsync(Test test) { if (test is null) throw new ArgumentNullException(nameof(test)); await _db.Tests.AddAsync(test); await _db.SaveChangesAsync(); }
public async Task AddAsync(UserAnswer userAnswer) { if (userAnswer is null) { throw new ArgumentNullException(nameof(userAnswer)); } await _db.UserAnswers.AddAsync(userAnswer); await _db.SaveChangesAsync(); }
public async Task AddAsync(TestMark testMark) { if (testMark is null) { throw new ArgumentNullException(nameof(testMark)); } await _db.TestMarks.AddAsync(testMark); await _db.SaveChangesAsync(); }
public async Task AddAsync(TestAnswer testAnswer) { if (testAnswer is null) { throw new ArgumentNullException(nameof(testAnswer)); } await _db.TestAnswers.AddAsync(testAnswer); await _db.SaveChangesAsync(); }
public async Task AddAsync(TestQuestion testQuestion) { if (testQuestion is null) { throw new ArgumentNullException(nameof(testQuestion)); } await _db.TestQuestions.AddAsync(testQuestion); await _db.SaveChangesAsync(); }