public function deleteAction() { $person = $this->contactService->findPerson($this->params('id')); if (!$person) { return $this->notFoundAction(); } $this->contactService->deleteContact($person); return $this->redirect()->toRoute('contacts'); }
public function deleteAction() { $company = $this->contactService->findCompany($this->params('id')); if (!$company) { return $this->notFoundAction(); } $this->contactService->deleteContact($company); return $this->redirect()->toRoute('contacts'); }