public static string Parse(PostCode postCode) { if (string.IsNullOrEmpty(postCode.InwardCode) || string.IsNullOrEmpty(postCode.OutwardCode)) { return(string.Empty); } return(string.Format("{0} {1}", postCode.InwardCode.Trim().ToUpper(), postCode.OutwardCode.Trim().ToUpper())); }
public Address() { PostCode = new PostCode(); }
public static string Parse(PostCode postCode) { if (string.IsNullOrEmpty(postCode.InwardCode) || string.IsNullOrEmpty(postCode.OutwardCode)) return string.Empty; return string.Format("{0} {1}", postCode.InwardCode.Trim().ToUpper(), postCode.OutwardCode.Trim().ToUpper()); }