public async Task <Boolean> sendPendingNFCs() { List <List <String> > localTags = dBFacade.getLocalStorageNFCs(); List <NFC> nfcs = new List <NFC>(); nfcCheck = false; foreach (List <String> tags in localTags) { double presentLatitude = Convert.ToDouble(tags[0]); double presentLongitude = Convert.ToDouble(tags[1]); Address address = await dBFacade.getAddress(tags[2]); double targetLatitude = address.Latitude; double targetLongtitude = address.Longtitude; GeoCoordinate presentCoordinate = new GeoCoordinate(presentLatitude, presentLongitude); GeoCoordinate targetCoordinate = new GeoCoordinate(targetLatitude, targetLongtitude); nfcs.Add(checkNFC(presentCoordinate, targetCoordinate, address.AddressName)); } nfcCheck = await dBFacade.createNFCs(nfcs); if (nfcCheck) { return(dBFacade.removeLocalStorageNFCs()); } return(nfcCheck); }