/**
  * 
  * Remove an existing contact
  */
 public function removeContactAction()
 {
     $return = array();
     $pageSession = new Zend_Session_Namespace('letting_agents_application');
     $contactManager = new LettingAgents_Manager_Contacts();
     $postData = $this->getRequest()->getParams();
     $filters = array('uid' => 'StringTrim', 'uid' => 'StripTags');
     $validators = array('uid' => 'Alnum');
     $input = new Zend_Filter_Input($filters, $validators, $postData);
     if ($input->isValid()) {
         // Valid input
         $contactManager->deleteByUid($input->uid);
     } else {
         // false
         $return['errorHtml'] = 'Invalid Contact';
     }
     $agent = new LettingAgents_Manager_AgentApplication();
     $agentData = new LettingAgents_Object_AgentApplication();
     $agentData = $agent->fetchByUid($pageSession->agentUniqueId);
     $organisation_type = $agentData->get_organisation_type();
     switch ($organisation_type) {
         case LettingAgents_Object_CompanyTypes::LimitedCompany:
             $partialFile = "limited-company-list.phtml";
             break;
         case LettingAgents_Object_CompanyTypes::LimitedLiabilityPartnership:
         case LettingAgents_Object_CompanyTypes::Partnership:
             $partialFile = "partnership-list.phtml";
             break;
     }
     $return['contactHtml'] = $this->view->partialLoop("partials/{$partialFile}", $contactManager->fetchByAgencyUid($pageSession->agentUniqueId));
     echo Zend_Json::encode($return);
 }