public function retrieveProspectDataByIdAction()
    {
        $prospectTable = $this->getServiceLocator()->get('MelisProspects');
        $id = $this->params()->fromRoute('id', $this->params()->fromQuery('id', ''));
        
        return new JsonModel($prospectTable->getEntryById($id));
    }
public function retrieveProspectDataByIdAction()
    {
        $prospectTable = $this->getServiceLocator()->get('MelisProspects');
        $id = $this->params()->fromRoute('id', $this->params()->fromQuery('id', ''));
        
        return new JsonModel($prospectTable->getEntryById($id));
    }
public function retrieveProspectDataByIdAction ( ) { $ prospectTable = $ this -> getServiceLocator ( ) -> get ( 'MelisProspects' ) ; $ id = $ this -> params ( ) -> fromRoute ( 'id' , $ this -> params ( ) -> fromQuery ( 'id' , '' ) ) ; return new JsonModel ( $ prospectTable -> getEntryById ( $ id ) ) ; }
returns the prospect data from the ID provided
@return \Zend\View\Model\JsonModel
returns the prospect data from the ID provided