public TelecomDeviceRegistration(TelecomDeviceRegistrationData dbRecord) : base(dbRecord) { Data.Address = Data.Address ?? new GeographicAddressData(); Data.Device = Data.Device ?? new TelecomAddressData(); Address = AddressFactory.Create(Data.Address) as GeographicAddress; Device = AddressFactory.Create(Data.Device) as TelecomAddress; }
public AddressesList(IEnumerable <AddressData> items, RepositoryPage page) : base(page) { if (items is null) { return; } foreach (var dbRecord in items) { Add(AddressFactory.Create(dbRecord)); } }