Пример #1
0
        public void RemoveResults(int parUserId, int parTestId)
        {
            var allResults = GetResults();

            allResults.RemoveAll(parResult => (parResult.TestID == parTestId && parResult.UserID == parUserId));
            Casher.Save(this);
        }
Пример #2
0
        public int AddTest(TestRecord parRecord)
        {
            var res = TestTable.Count;

            parRecord.ID = res;
            TestTable.Add(parRecord);
            Casher.Save(this);
            return(res);
        }
Пример #3
0
        public int AddTask(TaskRecord parTaskRecord)
        {
            var res = TaskTable.Count;

            parTaskRecord.ID = res;
            TaskTable.Add(parTaskRecord);
            Casher.Save(this);
            return(res);
        }
Пример #4
0
        public int AddAnswer(AnswerRecord parRecord)
        {
            var res = AnswerTable.Count;

            parRecord.ID = res;
            AnswerTable.Add(parRecord);
            Casher.Save(this);
            return(res);
        }
Пример #5
0
        public int AddQuestion(QuestionRecord parRecord)
        {
            var res = QuestionTable.Count;

            parRecord.ID = res;
            QuestionTable.Add(parRecord);
            Casher.Save(this);
            return(res);
        }
Пример #6
0
 public void AddTaskTest(TaskTestRecord parRecord)
 {
     TaskTestTable.Add(parRecord);
     Casher.Save(this);
 }
Пример #7
0
 public void InsertResults(List <ResultRecord> parRes)
 {
     ResultsTable.AddRange(parRes);
     Casher.Save(this);
 }