diff --git a/Code/IHM/MainWindow.xaml.cs b/Code/IHM/MainWindow.xaml.cs index 9b2e41f..f776a43 100644 --- a/Code/IHM/MainWindow.xaml.cs +++ b/Code/IHM/MainWindow.xaml.cs @@ -42,7 +42,7 @@ namespace IHM private void test_Click(object sender, RoutedEventArgs e) { - Manager.LoadInscrit("",""); + Manager.LoadInscrit("stef@.com", "teststef"); testSelect(); /* testSuppression();*/ } diff --git a/Code/LinqToPgSQL/PersLinqToPgSQL.cs b/Code/LinqToPgSQL/PersLinqToPgSQL.cs index 8e045b1..ed0d0d6 100644 --- a/Code/LinqToPgSQL/PersLinqToPgSQL.cs +++ b/Code/LinqToPgSQL/PersLinqToPgSQL.cs @@ -30,11 +30,16 @@ namespace LinqToPgSQL try { dr.Read(); + resultat = dr.GetString(0); + dr.Close(); + return resultat; } catch (Exception ex) - { Console.Out.WriteLine("A GERER"); } - dr.Close(); + { Console.Out.WriteLine("A GERER"); return null; + } + dr.Close(); + }