public void DeleteProgram(DevProgram program) { if (program == null) { throw new ArgumentNullException(nameof(program)); } _context.DevPrograms.Remove(program); }
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); }
public void UpdateProgram(DevProgram program) { // no code in this implementation }