The controller contains one POST method checkForEvents(), could be renamed to better describe purpose, which...
checks if the page has been updated using didPageUpdate() before carrying out other operations.
Then if the page was updated, a list of new events is stored from the getNewEvents() method.
Every new event in list is iterated through to store their location, appointment, and event data in the database
note(s):
Step (3) could be implemented differently if we used a DTO for all the event data, which includes appointment and location data.
The list of data returned by getNewEvents() may contain Event objects with incomplete data, such as no club. Also the club/location may already exist in the database, that must be checked some how.
The controller contains one POST method
checkForEvents()
, could be renamed to better describe purpose, which...didPageUpdate()
before carrying out other operations.getNewEvents()
method.note(s):
getNewEvents()
may contain Event objects with incomplete data, such as no club. Also the club/location may already exist in the database, that must be checked some how.