AerolineaFrba.Abm_Ruta.Modificacion.tieneViajeProgramado C# (CSharp) Method

tieneViajeProgramado() private method

private tieneViajeProgramado ( int idRuta ) : Boolean
idRuta int
return Boolean
        private Boolean tieneViajeProgramado(int idRuta)
        {
            SqlCommand command = new SqlCommand();
            command.Connection = Program.conexion();
            command.CommandType = System.Data.CommandType.Text;
            command.CommandText = "SELECT ABSTRACCIONX4.TieneViajeProgramado(@IdRuta)";
            command.CommandTimeout = 0;

            command.Parameters.AddWithValue("@IdRuta", idRuta);

            return (Boolean)command.ExecuteScalar();
        }