Exemple #1
0
        public bool AddNewStudentLearnResult(string _studentID, string _classID)
        {
            SubjectController subjectController = new SubjectController();
            List <Subject>    subjects          = subjectController.LoadSubjects();
            Student           student           = new Student();

            student.ID      = _studentID;
            student.ClassID = _classID;
            return(studentDA.AddStudentLearnResult(student, subjects));
        }
Exemple #2
0
        public bool AddNewStudentToDataBase(Student student)
        {
            SubjectController subjectController = new SubjectController();
            List <Subject>    subjects          = subjectController.LoadSubjects();
            bool success = studentDA.AddStudent(student);

            if (success)
            {
                success = studentDA.AddStudentLearnResult(student, subjects);
            }
            return(success);
        }