protected function GenerateResponse() { try { $this->response = POSController::EditarPerfilConfiguracion(isset($_POST['id_perfil']) ? $_POST['id_perfil'] : null, isset($_POST['configuracion']) ? json_decode($_POST['configuracion']) : null, isset($_POST['descripcion']) ? $_POST['descripcion'] : ""); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }