public CompanyContract() { this.name = string.Empty; this.abbreviation = string.Empty; this.headquartersAddress = null; this.addresses = new List<AddressContract>(); this.phoneNumber = string.Empty; this.faxNumber = string.Empty; this.url = string.Empty; this.remarks = string.Empty; }
public CompanyContract() { this.name = string.Empty; this.abbreviation = string.Empty; this.headquartersAddress = null; this.addresses = new List <AddressContract>(); this.phoneNumber = string.Empty; this.faxNumber = string.Empty; this.url = string.Empty; this.remarks = string.Empty; }
public static Address ToAddress(AddressContract contract) { Address address = null; if (contract != null) { address = new Address(contract.Street, contract.City, contract.State, contract.PostalCode); } return address; }
public static AddressContract ToAddressContract(Address address) { AddressContract contract = null; if (address != null) { contract = new AddressContract(); contract.City = address.City; contract.PostalCode = address.PostalCode; contract.State = address.State; contract.Street = address.Street; } return contract; }