示例#1
0
        private SBNCreateProgramAccountRequestBodyMailingAddressForeignLegacy GetForeignLegacyMailing()
        {
            var foreignLegacyMailing = new SBNCreateProgramAccountRequestBodyMailingAddressForeignLegacy();

            foreignLegacyMailing.addressDetailLine1 = "ToGetFromDynamics";
            foreignLegacyMailing.addressDetailLine2 = "ToGetFromDynamics";

            return(foreignLegacyMailing);
        }
        private SBNCreateProgramAccountRequestBodyMailingAddressForeignLegacy GetForeignLegacyMailing(MicrosoftDynamicsCRMadoxioLicences licence)
        {
            var foreignLegacyMailing = new SBNCreateProgramAccountRequestBodyMailingAddressForeignLegacy();

            foreignLegacyMailing.addressDetailLine1 = licence.AdoxioEstablishment.AdoxioAddressstreet;
            //foreignLegacyMailing.addressDetailLine2 =

            return(foreignLegacyMailing);
        }
示例#3
0
        private SBNCreateProgramAccountRequestBodyMailingAddressForeignLegacy GetForeignLegacyMailing(MicrosoftDynamicsCRMadoxioLicences licence)
        {
            var foreignLegacyMailing = new SBNCreateProgramAccountRequestBodyMailingAddressForeignLegacy();

            if (licence.AdoxioEstablishment != null)
            {
                foreignLegacyMailing.addressDetailLine1 = licence.AdoxioEstablishment.AdoxioAddressstreet;
            }
            else // attempt to get from the Account
            {
                foreignLegacyMailing.addressDetailLine1 = licence.AdoxioLicencee.Address1Line1;
            }
            //foreignLegacyMailing.addressDetailLine2 =

            return(foreignLegacyMailing);
        }