Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
        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");
            }
        }