public void RemoveResults(int parUserId, int parTestId) { var allResults = GetResults(); allResults.RemoveAll(parResult => (parResult.TestID == parTestId && parResult.UserID == parUserId)); Casher.Save(this); }
public int AddTest(TestRecord parRecord) { var res = TestTable.Count; parRecord.ID = res; TestTable.Add(parRecord); Casher.Save(this); return(res); }
public int AddTask(TaskRecord parTaskRecord) { var res = TaskTable.Count; parTaskRecord.ID = res; TaskTable.Add(parTaskRecord); Casher.Save(this); return(res); }
public int AddAnswer(AnswerRecord parRecord) { var res = AnswerTable.Count; parRecord.ID = res; AnswerTable.Add(parRecord); Casher.Save(this); return(res); }
public int AddQuestion(QuestionRecord parRecord) { var res = QuestionTable.Count; parRecord.ID = res; QuestionTable.Add(parRecord); Casher.Save(this); return(res); }
public void AddTaskTest(TaskTestRecord parRecord) { TaskTestTable.Add(parRecord); Casher.Save(this); }
public void InsertResults(List <ResultRecord> parRes) { ResultsTable.AddRange(parRes); Casher.Save(this); }