private static bool NaturalPersonTest(Iatec.Adems.PeopleManagement.Client.Configuration apiConfig) { try { var npApi = new NaturalPersonApi(apiConfig); var teste = npApi.GetPageActiveByFilterForExternal2Async("05-02-1994", GenderModel.Male, 10, 0).Result; //var teste = npApi.GetPageActiveByFilterForExternal(0,1); //var teste = npApi.SaveForExternal(new NaturalPersonLiteExternalModel //{ // AuthenticationUserName = "******", // FirstName = "Jabes2", // Gender = GenderModel.Male, // BirthDate = new DateTime(1994, 2, 5), // IdentifierDocumentNumber = "65534613688", // MiddleName = "ta", // LastName = "o", // FullName = "Jabes ta o", // MotherName = "mae", //}); //var teste2 = npApi.GetByUserName("jabes.tao"); //var teste2 = npApi.GetByIdForExternal(new Guid("2b0632f6-9503-4157-9122-a990004e6a1e")); //basicPropList.Add(new NPBasicPropertyModel //{ // BirthDate = teste.BirthDate, // Gender = teste.Gender, // Name = teste.FirstName, //}); //var personList = npApi.GetListByBasicPropertyList(basicPropList); var list = npApi.GetListNaturalPersonLastSystemUpdateAsync().Result; var ids = list.Select(a => a.NaturalPersonId).Distinct().ToList(); npApi.NaturalPersonUpdateNotice(ids); //npApi.NaturalPersonDeleteNaturalPerson(new System.Collections.Generic.List<Guid> { teste2.Id }); return(true); } catch (Exception) { throw; } }