public function deleteAction()
    {
        $id = (int) $this->params()->fromRoute('id', null);

        $request = $this->getRequest();

        if ($request->isPost()) {
            $confirmed = $request->getPost('confirmed', false);
            if ($confirmed) {
                $id = (int) $request->getPost('id');

                $this->getService()->delete($id);

                return $this->redirect()->toRoute($this->getRouteIdentifierPrefix());
            }
        }

        return new ViewModel(array(
            'options'  => $this->getOptions(),
        ));
    }