public function deletarAction()
 {
     $id = (int) $this->params()->fromRoute('id');
     if (!$id) {
         return $this->redirect()->toUrl($this->redirect);
     }
     $entity = new $this->entityClass();
     // Instancia o servico e verifica se existe uma pre verificacao a ser executada
     $service = Registry::getEntityService($this->entityClass);
     $service->delete($id);
     return $this->redirect()->toUrl($this->redirect);
 }