public async Task<bool> DeleteSpotAsync(string spotId)
 {
     MSSpotObject msso = new MSSpotObject("", 0, 0, "", "", 0, false, "");
     msso.id = spotId;
     await App.MobileService.GetTable<MSSpotObject>().DeleteAsync(msso);
     return true;
 }
        public static SpotObject ConvertToSpotObject(MSSpotObject msso)
        {
            SpotObject so = new SpotObject();

            so.Id             = msso.id;
            so.SpotName       = msso.spot_name;
            so.Latitude       = msso.spot_latitude;
            so.Longtitude     = msso.spot_longtitude;
            so.PtcAccountId   = msso.account_id;
            so.PtcAccountName = msso.account_name;
            so.SpotDistance   = msso.spot_distance;
            so.Password       = msso.spot_password;
            so.IsPrivate      = msso.is_private;
            so.CreateAt       = msso.create_at;
            return(so);
        }
 public static SpotObject ConvertToSpotObject(MSSpotObject msso)
 {
     SpotObject so = new SpotObject();
     so.Id = msso.id;
     so.SpotName = msso.spot_name;
     so.Latitude = msso.spot_latitude;
     so.Longtitude = msso.spot_longtitude;
     so.PtcAccountId = msso.account_id;
     so.PtcAccountName = msso.account_name;
     so.SpotDistance = msso.spot_distance;
     so.Password = msso.spot_password;
     so.IsPrivate = msso.is_private;
     so.CreateAt = msso.create_at;
     return so;
 }