예제 #1
0
 /// <summary>
 /// RestoreLocation1 - calls either Rosettian CreateLocation or UpdateLocation
 /// </summary>
 /// <param name="loc"></param>
 /// <param name="requiresUpdates"></param>
 public static void RestoreLocation1(LocationDto loc, bool requiresUpdates)
 {
     using (var client = new RosettianClient())
     {
         if (!client.LocationExists(loc.ID, user))
         {
             client.CreateLocation(loc, user);
         }
         else if (requiresUpdates)
         {
             client.UpdateLocation(loc, user);
         }
     }
 }