it takes almost up to 30 seconds, mostly 20ish avg
    public OperadorViewModel GetById(int id)
    {
        IDbConnection con = new SqlConnection(_configuration.GetConnectionString("DefaultConnection"));
        var query = @"SELECT 
                          * 
                      FROM 
                        Operadores
                      WHERE Id= @id";
        return con.QueryFirstOrDefault<OperadorViewModel>(query, new { id = id });
    }
Is there a way to make it faster to detect there is no connection so i can show error message to user fast instead waiting 30 seconds?...
 
    