Exemple #1
0
        private void AddOperation()
        {
            switch (view.entity)
            {
            case Entity.Pupil:
                Pupil s = view.PupilAddOrUpdateEnter();
                pupilDAO.Create(s);
                break;

            case Entity.Teacher:
                Teacher t = view.TeacherAddOrUpdateEnter();
                teacherDAO.Create(t);
                break;
            }
        }