private async Task GetDeviceData(View view) { Room objRoom = await APIManager.GetDeviceByRoomId(houseId, roomId); if (objRoom != null) { List <Devices> lstDevice = objRoom.devices; var grdHouse = view.FindViewById <GridView>(Resource.Id.grdHouse); grdHouse.Adapter = new DeviceAdapter(Activity, lstDevice, houseId, roomId); } }