/**
  * Deletes a Section entity.
  *
  * @param Request $request
  * @param integer $id      The ID of the Section to delete
  *
  * @return RedirectResponse
  */
 public function deleteAction(Request $request, $id)
 {
     $section = $this->sectionRepository->find($id);
     $this->deleteEntity($section);
     $this->get('unifik_system.router_invalidator')->invalidate();
     return $this->redirect($this->generateUrl('unifik_system_backend_section'));
 }
 /**
  * Deletes a Root Section entity.
  *
  * @param Request $request
  * @param integer $id      The ID of the Section to delete
  *
  * @return RedirectResponse
  */
 public function deleteAction(Request $request, $id)
 {
     $section = $this->sectionRepository->find($id);
     $this->deleteEntity($section);
     return $this->redirect($this->generateUrl('unifik_system_backend_section_root', array('appSlug' => $this->getApp()->getSlug())));
 }