diff --git a/Controllers/SwitchesController.cs b/Controllers/SwitchesController.cs index d990486..c6ca76c 100644 --- a/Controllers/SwitchesController.cs +++ b/Controllers/SwitchesController.cs @@ -71,7 +71,7 @@ public async Task GetAllSwitches() _logger.LogInformation("GetAllSwitches called by {@LogData}", new { User = User.Identity?.Name }); var allSwitches = await _context.Switches - .Where(sw => sw.Type.Equals("SOCKET", StringComparison.OrdinalIgnoreCase)) + .Where(sw => sw.Type.ToUpper() == "SOCKET") .ToListAsync(); var accessibleSwitches = new List();