private async Task AddOrUpdatePeople() { // Save Person record and retrieve Id. Person.Id = await ServiceCalls.SavePerson(Person); if (this.Parent.GetType() == typeof(PeopleForm)) { ((PeopleForm)this.Parent).NewPerson = Person; } }