Пример #1
0
        public PhoneNumber AddPhoneNumber(PhoneNumberType type)
        {
            PhoneNumber phoneNumber = PhoneNumber.Create(type);

            PhoneNumbers.Add(phoneNumber);

            return(phoneNumber);
        }
Пример #2
0
 internal static PhoneNumber Create(PhoneNumberType type)
 {
     return new PhoneNumber {Id = CombGuid.NewGuid(), PhoneNumberTypeId = type.Id};
 }
        public PhoneNumber AddPhoneNumber(PhoneNumberType type)
        {
            PhoneNumber phoneNumber = PhoneNumber.Create(type);
            PhoneNumbers.Add(phoneNumber);

            return phoneNumber;
        }
Пример #4
0
 internal static PhoneNumber Create(PhoneNumberType type)
 {
     return(new PhoneNumber {
         Id = CombGuid.NewGuid(), PhoneNumberTypeId = type.Id
     });
 }