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 ");