From 1402ae1b95cdf9f352e22d65afa7e7d0a47618c9 Mon Sep 17 00:00:00 2001 From: David D'ALMEIDA Date: Mon, 27 Mar 2023 17:13:53 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'EntityFramework=5F?= =?UTF-8?q?LoL/Sources/API=5FLoL=5FProject/Controllers/version2/RuneContro?= =?UTF-8?q?ller.cs'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../API_LoL_Project/Controllers/version2/RuneController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EntityFramework_LoL/Sources/API_LoL_Project/Controllers/version2/RuneController.cs b/EntityFramework_LoL/Sources/API_LoL_Project/Controllers/version2/RuneController.cs index d5a89bf..5ae9627 100644 --- a/EntityFramework_LoL/Sources/API_LoL_Project/Controllers/version2/RuneController.cs +++ b/EntityFramework_LoL/Sources/API_LoL_Project/Controllers/version2/RuneController.cs @@ -97,7 +97,7 @@ namespace API_LoL_Project.Controllers.version2 var runes = await dataManager.GetItems(request.index, totalcount, request.orderingPropertyName, (request.descending == null ? false : (bool)request.descending)); IEnumerable res = runes.Select(c => c.ToDTO()); - if (res.Count() >= 0 || res == null) + if (res == null) { _logger.LogWarning("No runes found with Id"); return BadRequest("No runes found with Id ");