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); } }
public AccountAddress(SavedAddressDTO address) : this() { PopulateAccountAddressFromDTO(address); }