public void GetLeds(HttpContext context, string controllerId) { int id = ApiBase.ParseId(controllerId); ControllerLeds controllerLeds = _controllerHandler.GetLedsOfController(id); string json = JsonSerializer.SerializeJson(controllerLeds); context.Response.Payload.Write(json); context.Response.Status = HttpStatus.OK; }