/**
  * Deletes the given commercial group
  */
 public function deleteAction()
 {
     $commercialGroup = $this->_getCommercialGroup();
     // Check permissions
     $this->_helper->allowed('delete', $commercialGroup);
     // Remove the user
     $this->_cgSrv->delete($commercialGroup);
     // Delete success
     $this->getResponse()->setHttpResponseCode(204);
     $this->_helper->viewRenderer->setNoRender(TRUE);
 }
 /**
  * Deletes the given commercial group
  */
 public function deleteAction()
 {
     $commGroupId = $this->getRequest()->getParam('id');
     $commGroup = $this->_cgSrv->load($commGroupId);
     if (empty($commGroup)) {
         throw new NotFoundException('CommercialGroup ' . $commGroupId . ' not found', 404);
     }
     // Check permissions
     $this->_helper->allowed('delete', $commGroup);
     // Remove the user
     $this->_cgSrv->delete($commGroup);
     $this->view->data = true;
 }