protected function GenerateResponse() { try { $this->response = CargosYAbonosController::NuevoConceptoIngreso(isset($_POST['id_cuenta_contable']) ? $_POST['id_cuenta_contable'] : null, isset($_POST['nombre']) ? $_POST['nombre'] : null, isset($_POST['descripcion']) ? $_POST['descripcion'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }