// GetSchoolByID returns the school associated with the given ID, or nil if it doesn't exist.
GetSchoolByID returns the school associated with the given ID, or nil if it doesn't exist.
// GetSchoolByID returns the school associated with the given ID or nil if it doesn ' t exist .
func (r *Registry) GetSchoolByID(id string) (data.School, error) {
	for _, school := range r.schoolList {
		if school.ID() == id {
			return school, nil
		}
	}
	return nil, data.ErrNotFound
}
func ( r * Registry ) GetSchoolByID ( id string ) ( data . School , error ) { for _ , school := range r . schoolList { if school . ID ( ) == id { return school , nil } } return nil , data . ErrNotFound }
GetSchoolByID returns the school associated with the given ID, or nil if it doesn't exist.
GetSchoolByID returns the school associated with the given ID or nil if it doesn ' t exist .