Пример #1
0
 /**
  * Delete option from database
  *
  * @return JSONResponse
  */
 public function delete()
 {
     if ($id = $this->request->get("id", false)) {
         ProductOption::deleteById($id);
         return new JSONResponse(false, 'success');
     } else {
         return new JSONResponse(false, 'failure', $this->translate('_could_not_remove_option'));
     }
 }