Esempio n. 1
0
 /**
  * @param array $formData
  *
  * @return \Symfony\Component\HttpFoundation\RedirectResponse
  */
 protected function executePost(array $formData)
 {
     return $this->actionHelper->handleCreatePostAction(function () use($formData) {
         $this->menuFormValidation->validate($formData);
         return $this->menusModel->save($formData);
     });
 }
Esempio n. 2
0
 /**
  * @param string $action
  *
  * @return mixed
  */
 public function execute($action = '')
 {
     return $this->actionHelper->handleDeleteAction($action, function (array $items) {
         return $this->menusModel->delete($items);
     });
 }