Example #1
0
 public static void UpdateOrAddPerson(Rock.Client.Person person, bool isNew, int modifiedById, HttpRequest.RequestResult resultHandler)
 {
     if (isNew == true)
     {
         person.Guid = Guid.NewGuid( );
         RockApi.Post_People(person, modifiedById, resultHandler);
     }
     else
     {
         RockApi.Put_People(person, modifiedById, resultHandler);
     }
 }