AerolineaFrba.Registro_Llegada_Destino.Form1.esDestinoValido C# (CSharp) Method

esDestinoValido() private method

private esDestinoValido ( ) : int
return int
        private int esDestinoValido()
        {
            SqlCommand command = new SqlCommand();
            command.Connection = Program.conexion();
            command.CommandType = System.Data.CommandType.Text;
            command.CommandText = "SELECT ABSTRACCIONX4.llegaADestinoCorrecto(@viaje_cod , @ciuDestinoTxt)";
            command.CommandTimeout = 0;

            command.Parameters.AddWithValue("@viaje_cod", viaje_cod_diferido);
            command.Parameters.AddWithValue("@ciuDestinoTxt", txtCiudadDestino.Text);

            return (int)command.ExecuteScalar();
        }