public async Task <Device> ImportInitializeDeviceTwin(string deviceId, DeviceTwinImportModel tags) { Device device = await _DeviceTwinRepo.ImportInitializeDeviceTwin(deviceId, tags); if (device != null) { //Update cache _Cache.EnsureDeviceEntity(deviceId, tags); } return(device); }