private async void getDataFromCloud(BasicGeoposition bg) { try { List <detailsofperson> tappeduser = new List <detailsofperson>(); tappeduser = await App.MobileService.GetTable <detailsofperson>().Where(X => bg.Latitude.ToString() == X.lat & bg.Longitude.ToString() == X.lng).ToListAsync(); customPushpin cc = new customPushpin(); mymap.Children.Add(new customPushpin(tappeduser[0])); } catch (Exception ex) { Debug.WriteLine("Exception" + ex); } }
private async void getDataFromCloud(BasicGeoposition bg) { try { List<detailsofperson> tappeduser = new List<detailsofperson>(); tappeduser = await App.MobileService.GetTable<detailsofperson>().Where(X => bg.Latitude.ToString()== X.lat & bg.Longitude.ToString()==X.lng).ToListAsync(); customPushpin cc = new customPushpin(); mymap.Children.Add(new customPushpin(tappeduser[0])); } catch(Exception ex) { Debug.WriteLine("Exception" + ex); } }