public function showAction() { $id = $this->params('id'); $contact = $this->contactService->find($id); if (!$contact) { return $this->createHttpNotFoundModel($this->response); } return new ViewModel(['contact' => $contact]); }
public function showAction() { $id = $this->params('id'); $societe = $this->societeService->find($id); if (!$societe) { return $this->createHttpNotFoundModel($this->response); } return new ViewModel(['societe' => $societe]); }