private void AtualizarValoresDiários() { int aux = ConnectionGate.ExecuteStoredProcedure("p_actualizaValorDiario", null); if (aux > 0) { Console.WriteLine("The values were updated"); } else if (aux == 0) { Console.WriteLine("There aren't Triples available"); } }
private void AtualizarDadosFundamentais() { string isin = ""; Console.WriteLine("Please enter the ISIN of the instrument or just press enter to update all"); isin = Console.ReadLine(); if (ConnectionGate.ExecuteStoredProcedure("p_actualizaDadosInstrumentos", new SqlParameter[] { new SqlParameter("@isinT", isin) }) >= 0) { Console.WriteLine("The values were updated"); } else { Console.WriteLine("The value were NOT updated"); } }