예제 #1
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);
        }