Esempio n. 1
0
 public void SaveUpdatePopularTagsSetting(AspxCommonInfo aspxCommonObj, PopularTagsSettingKeyPair pTSettingList)
 {
     try
     {
         (new PopularTagsProvider()).SaveUpdatePopularTagsSetting(aspxCommonObj, pTSettingList);
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
 public void SaveUpdatePopularTagsSetting(AspxCommonInfo aspxCommonObj, PopularTagsSettingKeyPair pTSettingList)
 {
     try
     {
         List <KeyValuePair <string, object> > paramSPC = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         paramSPC.Add(new KeyValuePair <string, object>("@SettingKeys", pTSettingList.SettingKey));
         paramSPC.Add(new KeyValuePair <string, object>("@SettingValues", pTSettingList.SettingValue));
         (new OracleHandler()).ExecuteNonQuery("[dbo].[usp_Aspx_PopularTagsSettingsUpdate]", paramSPC);
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }
Esempio n. 3
0
 public PopularTagsSettingKeyPair GetPopularTagsSettingValueByKey(AspxCommonInfo aspxCommonObj, string settingKey)
 {
     try
     {
         List <KeyValuePair <string, object> > paramCollection = CommonParmBuilder.GetParamSPC(aspxCommonObj);
         paramCollection.Add(new KeyValuePair <string, object>("@SettingKey", settingKey));
         SQLHandler sqlH = new SQLHandler();
         PopularTagsSettingKeyPair pTSettingByKey = new PopularTagsSettingKeyPair();
         pTSettingByKey = sqlH.ExecuteAsObject <PopularTagsSettingKeyPair>("[dbo].[usp_Aspx_PopularTagsSettingValueGetBYKey]", paramCollection);
         return(pTSettingByKey);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public PopularTagsSettingKeyPair GetPopularTagsSettingValueByKey(AspxCommonInfo aspxCommonObj, string settingKey)
        {
            PopularTagsSettingKeyPair popularTagsSettingKeyPair;

            try
            {
                List <KeyValuePair <string, object> > paramSPC = CommonParmBuilder.GetParamSPC(aspxCommonObj);
                paramSPC.Add(new KeyValuePair <string, object>("@SettingKey", settingKey));
                OracleHandler             sQLHandler = new OracleHandler();
                PopularTagsSettingKeyPair popularTagsSettingKeyPair1 = new PopularTagsSettingKeyPair();
                popularTagsSettingKeyPair = sQLHandler.ExecuteAsObject <PopularTagsSettingKeyPair>("[dbo].[usp_Aspx_PopularTagsSettingValueGetBYKey]", paramSPC);
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(popularTagsSettingKeyPair);
        }