/// <summary> /// Method for returning a postal object created from the properites data. /// </summary> /// <returns>A postal object.</returns> public Postal GetPostal() { Postal postal = new Postal() { City = this.City, PostalCode = this.PostalCode, Addresses = new List <Address>() }; postal.Addresses.Add(GetAddress(postal)); return(postal); }
/// <summary> /// Method for returning a address object created from the properites data. /// </summary> /// <returns>A address object.</returns> public Address GetAddress(Postal postal) { Address address = new Address() { Street = this.Addr1, XCoord = ConvertToDouble(this.CoordX), YCoord = ConvertToDouble(this.CoordY), PostalCode = this.PostalCode, Persons = new List <Person>(), Postal = postal }; address.Persons.Add(GetPerson(address)); return(address); }