public PrimaryAddressDTO(PrimaryAddress primaryAddress)
 {
     Id           = primaryAddress.Id;
     Street       = primaryAddress.Street;
     StreetNumber = primaryAddress.StreetNumber;
     Zip          = new ZipDTO(primaryAddress.Zip);
 }
Esempio n. 2
0
 public Person ToPerson()
 {
     return(new Person()
     {
         Id = Id, FirstName = FirstName, MiddleName = MiddleName, LastName = LastName, Email = Email, PrimaryAddress = PrimaryAddress.ToPrimaryAddress(), PrimaryAddressId = PrimaryAddress.Id, SecondaryAddresses = SecondaryAddresses.Select(pa => pa.ToAddressType()).ToList(), PhoneNumbers = PhoneNumbers.Select(pn => pn.ToPhoneNumber()).ToList()
     });
 }