private void FixupPerson(Person previousValue) { if (previousValue != null && previousValue.Testimonials.Contains(this)) { previousValue.Testimonials.Remove(this); } if (Person != null) { if (!Person.Testimonials.Contains(this)) { Person.Testimonials.Add(this); } if (PersonId != Person.PersonId) { PersonId = Person.PersonId; } } }
public PersonPresentable(Person person) { _base = person; }
private void FixupPrimaryContactPerson(Person previousValue) { if (PrimaryContactPerson != null) { if (PrimaryContactId != PrimaryContactPerson.PersonId) { PrimaryContactId = PrimaryContactPerson.PersonId; } } else if (!_settingFK) { PrimaryContactId = null; } }