/**
  * @param $meetId
  * @return array
  */
 private function getPageData($meetId)
 {
     $Season = $this->MeetService->getSeasonByMeetId($meetId);
     return array('meetId' => $meetId, 'meetDetails' => $this->MeetService->getMeetDetails($meetId), 'athletes' => $this->MeetService->getAthletesBySeason($Season), 'events' => $this->MeetService->getEventTypes(), 'meetResults' => $this->MeetService->getMeetResults($meetId));
 }
 /**
  * @param $meetId
  * @return mixed
  */
 public function renderMeetResults($meetId)
 {
     $meetDetails = $this->MeetService->getMeetDetails($meetId);
     $showEventSchedule = strtotime($meetDetails['meetDate']) > strtotime('-2 day');
     return $this->App['twig']->render('Track/meetResults.twig', array('showEventSchedule' => $showEventSchedule, 'meetDetails' => $meetDetails, 'meetResults' => $this->MeetService->getMeetResults($meetId, $showEventSchedule), 'forecast' => $this->MeetService->getWeatherForecastByMeetId($meetId)));
 }