Method getAllEvents work