Update DeviceController.cs