protected override void addTeacher()
        {
            var teacherBuilder = new ConcreteTeacherBuilder();
            var teacher        = teacherBuilder.Build();

            _teachers[teacher.ID] = teacher;
        }
Exemplo n.º 2
0
        protected override void addTeacher()
        {
            var teacherBuilder = new ConcreteTeacherBuilder();
            var teacher        = teacherBuilder.Build();

            if (_teachers.ContainsKey(teacher.ID))
            {
                Console.WriteLine("Not able to add Teacher. ID already exists");
            }
            else
            {
                _teachers[teacher.ID] = teacher;
            }
        }