Ejemplo n.º 1
0
 /// <summary>
 ///
 /// inputs data on the locations service table
 /// </summary>
 /// <returns>The or update location data async.</returns>
 /// <param name="entry">Entry.</param>
 public Task AddOrUpdateLocationsDataAsync(OnlineModels.LocationOnlineModel entry)
 {
     Initialize();
     if (string.IsNullOrEmpty(entry.Id))
     {
         return(locationsTable.InsertAsync(entry));
     }
     return(locationsTable.UpdateAsync(entry));
 }
Ejemplo n.º 2
0
        public static void SetMissionLocations(List <Models.MyMissionsLocations> result, int m_ID, string mOID)
        {
            //Debug.WriteLine("something!");
            foreach (var locLocation in result)
            {
                OnlineModels.LocationOnlineModel uploadLocation = new OnlineModels.LocationOnlineModel();
                uploadLocation.locationName = locLocation.locationName;
                uploadLocation.gps          = locLocation.gpsLocation;
                uploadLocation.hint         = locLocation.locationHint;
                uploadLocation.maker        = "bego";
                uploadLocation.lLocalID     = locLocation.locationId;
                uploadLocation.mLocalID     = m_ID;
                uploadLocation.missionOID   = mOID;

                App.Service.AddOrUpdateLocationsDataAsync(uploadLocation);
            }
        }