Пример #1
0
        internal dynamic ChannelRead(ADO ado, string lngIsoCode, string chnCode = null, bool singleLanguage = false)
        {
            Subscription_ADO sAdo = new Subscription_ADO(ado);
            var subscriptions     = sAdo.ChannelRead(lngIsoCode, chnCode, null, singleLanguage);


            return(MergeUsers(subscriptions.data));
        }
        /// <summary>
        /// Execute
        /// </summary>
        /// <returns></returns>
        protected override bool Execute()
        {
            if (SamAccountName == null)
            {
                Response.error = Label.Get("error.authentication");
                return(false);
            }

            Subscription_ADO sAdo = new Subscription_ADO(Ado);
            var response          = sAdo.ChannelRead(DTO.ChnName);

            if (response.hasData)
            {
                Response.data = response.data;
                return(true);
            }
            return(false);
        }