Beispiel #1
0
        public RegistrationPreferenceTypesModel Edit(int registrationPreferenceID, string active, string mandatory)
        {
            RegistrationPreferenceTypesModel registrationPreferenceType = APIUtil.GetRegistrationPreferenceType(USISDKClient, registrationPreferenceID);

            registrationPreferenceType.Active    = active;
            registrationPreferenceType.Mandatory = mandatory;

            return(APIUtil.UpdateRegistrationPreferenceType(USISDKClient, registrationPreferenceType));
        }
Beispiel #2
0
        /// <summary>
        /// A basic add example
        /// </summary>
        /// <param name="orgCode">Organization code</param>
        /// <param name="preferenceType">Preference Type</param>
        /// <param name="active">True if active</param>
        /// <param name="mandatory">"Y" or "N".</param>
        /// <param name="configurationCode">Application configuration code</param>
        /// <param name="defaultLanguage">"Y" or "N". Default language to be used when usersland on the site for the first time, using the base link that has no language information predefined.</param>
        /// <returns></returns>
        public RegistrationPreferenceTypesModel Add(string orgCode,
                                                    int preferenceType,
                                                    string active,
                                                    string mandatory,
                                                    string configurationCode)
        {
            RegistrationPreferenceTypesModel registrationPreferenceType = new RegistrationPreferenceTypesModel()
            {
                OrgCode           = orgCode,
                PreferenceType    = preferenceType,
                Active            = active,
                Mandatory         = mandatory,
                ConfigurationCode = configurationCode
            };

            return(APIUtil.AddRegistrationPreferenceType(USISDKClient, registrationPreferenceType));
        }