Implemented the getAllEvents service