Mise à jour de 'EntityFramework_LoL/Sources/API_LoL_Project/Controllers/version2/RuneController.cs'
continuous-integration/drone/push Build is passing Details

master
David D'ALMEIDA 2 years ago
parent dd0d45f131
commit 1402ae1b95

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

Loading…
Cancel
Save