Beispiel #1
0
        public void RemoveProgram(Program program)
        {
            ProgramAssignment assignment = _programAssignments.FirstOrDefault(x => x.Program == program);

            if (assignment == null)
            {
                return;
            }

            _programAssignments.Remove(assignment);
        }
Beispiel #2
0
        public void AssignProgram(Program careerTechProgram, ValidPeriod validPeriod)
        {
            ProgramAssignment assignment = _programAssignments.FirstOrDefault(x => x.Program == careerTechProgram);

            if (assignment != null)
            {
                return;
            }

            var newAssignment = new ProgramAssignment(careerTechProgram, this, validPeriod);

            _programAssignments.Add(newAssignment);
        }