Ejemplo n.º 1
0
        private SBNCreateProgramAccountRequestBodyOperatingName getOperatingName()
        {
            var operatingName = new SBNCreateProgramAccountRequestBodyOperatingName();

            //store name
            operatingName.operatingName = "ToGetFromDynamics";
            //only ever have 1 operating name
            operatingName.operatingNamesequenceNumber = OneStopUtils.OPERATING_NAME_SEQUENCE_NUMBER;

            return(operatingName);
        }
        private SBNCreateProgramAccountRequestBodyOperatingName getOperatingName(MicrosoftDynamicsCRMadoxioLicences licence)
        {
            var operatingName = new SBNCreateProgramAccountRequestBodyOperatingName();

            //store name
            operatingName.operatingName = licence.AdoxioEstablishment.AdoxioName;
            //only ever have 1 operating name
            operatingName.operatingNamesequenceNumber = OneStopUtils.OPERATING_NAME_SEQUENCE_NUMBER;

            return(operatingName);
        }
Ejemplo n.º 3
0
        private SBNCreateProgramAccountRequestBodyOperatingName getOperatingName(MicrosoftDynamicsCRMadoxioLicences licence)
        {
            var operatingName = new SBNCreateProgramAccountRequestBodyOperatingName();

            if (licence.AdoxioEstablishment != null)
            {
                //store name
                operatingName.operatingName = licence.AdoxioEstablishment.AdoxioName;
            }
            else // attempt to get from the Account
            {
                if (licence.AdoxioLicencee != null)
                {
                    operatingName.operatingName = licence.AdoxioLicencee.Name;
                }
            }
            //only ever have 1 operating name
            operatingName.operatingNamesequenceNumber = OneStopUtils.OPERATING_NAME_SEQUENCE_NUMBER;

            return(operatingName);
        }