func (u *UserRepository) ByID(ID int) (*model.User, error) {
	for _, user := range u.Users {
		if user.ID == ID {
			return user, nil
		}
	}
	return nil, model.ErrNotFound
}
// ByID finds a user by their ID
ByID finds a user by their ID
// ByID finds a user by their ID
func (u *UserRepository) ByID(ID int) (*model.User, error) {
	for _, user := range u.Users {
		if user.ID == ID {
			return user, nil
		}
	}
	return nil, model.ErrNotFound
}
func ( u * UserRepository ) ByID ( ID int ) ( * model . User , error ) { for _ , user := range u . Users { if user . ID == ID { return user , nil } } return nil , model . ErrNotFound }
ByID finds a user by their ID
ByID finds a user by their ID