コード例 #1
0
 public AddressCollectionViewModel GetAddressBookViewModel(AddressBookPage addressBookPage)
 {
     return(new AddressCollectionViewModel(addressBookPage)
     {
         CurrentContent = addressBookPage,
         Addresses = _customerService.GetCurrentContact()?
                     .Contact?
                     .ContactAddresses
                     .Select(x => _addressBookService.ConvertAddress(x))
                     ?? Enumerable.Empty <AddressModel>()
     });
 }