Exemple #1
0
        public void AddRelatedPerson(Person rp, RelationTypes type)
        {
            var relPerson = new RelatedPerson
            {
                BirthDate       = rp.BirthDate,
                City            = rp.City,
                CityID          = rp.CityID,
                FirstName       = rp.FirstName,
                Gender          = rp.Gender,
                ImageUrl        = rp.ImageUrl,
                ID              = rp.ID,
                LastName        = rp.LastName,
                PersonalNumber  = rp.PersonalNumber,
                PhoneNumber     = rp.PhoneNumber.Number.Value,
                PhoneNumberType = rp.PhoneNumber.PhoneNumberType,
                RelationType    = type
            };

            _relatedPeople.Add(relPerson);
            //TODO: VALIDATIOn
        }
Exemple #2
0
 public void AddRelatedPerson(RelatedPerson relatedPerson)
 {
     _relatedPeople.Add(relatedPerson);
 }