コード例 #1
0
ファイル: AccountAddress.cs プロジェクト: carlosap/pShoes
        private void PopulateAccountAddressFromDTO(SavedAddressDTO address)
        {
            if (address != null)
            {
                Id        = address.UUID;
                Name      = address.Key;
                Address1  = address.Address1;
                Address2  = address.Address2;
                City      = address.City;
                FirstName = address.FirstName;
                LastName  = address.LastName;
                Phone     = address.Phone;
                Zip       = address.PostalCode;
                State     = address.StateCode;

                Title = string.Format("({0}) {1}, {2}, {3}, {4}", Name, Address1, City, State, Zip);
            }
        }
コード例 #2
0
ファイル: AccountAddress.cs プロジェクト: carlosap/pShoes
 public AccountAddress(SavedAddressDTO address) : this()
 {
     PopulateAccountAddressFromDTO(address);
 }