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