From 9d5ee78cf4461792c9a6f33147a15319ed969820 Mon Sep 17 00:00:00 2001 From: "Johnny.Ratton" Date: Sat, 16 Mar 2024 21:20:23 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9glages=20des=20deux=20bugs=20signal?= =?UTF-8?q?=C3=A9s=20par=20Sonar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API_SQLuedo/TestConsoleAPI/UserTools.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/API_SQLuedo/TestConsoleAPI/UserTools.cs b/API_SQLuedo/TestConsoleAPI/UserTools.cs index 0434e1f..f65149a 100644 --- a/API_SQLuedo/TestConsoleAPI/UserTools.cs +++ b/API_SQLuedo/TestConsoleAPI/UserTools.cs @@ -160,7 +160,7 @@ public class UserTools } else { - var user = res1; + var user = (res1 as OkObjectResult).Value ; if (user == null) { Console.WriteLine("\nErreur, l'utilisateur n'existe pas !"); @@ -184,7 +184,7 @@ public class UserTools } else { - var user1 = res2; + var user1 = (res2 as OkObjectResult).Value; if (user1 == null) { Console.WriteLine("\nErreur, l'utilisateur n'existe pas !");