public void AddTestWrongAnswer(string userId, int testId, string wrongAnswer, DateTime wrongAnswerDate) { var testWrongAnswer = new UserTestWrongAnswer() { UserId = userId, Time = wrongAnswerDate, Answer = wrongAnswer, TestId = testId }; this._testAnswerRepository.AddWrongAnswer(testWrongAnswer); }
public void AddWrongAnswer(UserTestWrongAnswer wrongAnswer) { this._dbContext.Set <UserTestWrongAnswer>().Add(wrongAnswer); this._dbContext.SaveChanges(); }