Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }