示例#1
0
        public void DeleteProgram(DevProgram program)
        {
            if (program == null)
            {
                throw new ArgumentNullException(nameof(program));
            }

            _context.DevPrograms.Remove(program);
        }
示例#2
0
        public void AddProgram(Guid schoolId, DevProgram program)
        {
            if (schoolId == Guid.Empty)
            {
                throw new ArgumentNullException(nameof(schoolId));
            }

            if (program == null)
            {
                throw new ArgumentNullException(nameof(program));
            }
            // always set the SchoolId to the passed-in schoolId
            program.SchoolId = schoolId;

            _context.DevPrograms.Add(program);
        }
示例#3
0
 public void UpdateProgram(DevProgram program)
 {
     // no code in this implementation
 }