示例#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);
 }