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