Refactored code for ParkingEvents controller