Ejemplo n.º 1
0
 public YouMayAlsoLikeSettingInfo GetYouMayAlsoLikeSetting(AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AspxYouMayAlsoLikeController objYouMayLike     = new AspxYouMayAlsoLikeController();
         YouMayAlsoLikeSettingInfo    lstYouMayAlsoLike = objYouMayLike.GetYouMayAlsoLikeSetting(aspxCommonObj);
         return(lstYouMayAlsoLike);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
    public void GetYouMayAlsoLikeSetting()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.CultureName = CultureName;
        AspxYouMayAlsoLikeController objYouMayLike         = new AspxYouMayAlsoLikeController();
        YouMayAlsoLikeSettingInfo    lstRelatedItemSetting = objYouMayLike.GetYouMayAlsoLikeSetting(aspxCommonObj);


        if (lstRelatedItemSetting != null)
        {
            EnableYouMayAlsoLike     = lstRelatedItemSetting.IsEnableYouMayAlsoLike;
            NoOfYouMayAlsoLikeItems  = lstRelatedItemSetting.YouMayAlsoLikeCount;
            NoOfYouMayAlsoLikeInARow = lstRelatedItemSetting.YouMayAlsoLikeInARow;
        }
    }
    public void GetYouMayAlsoLikeSetting()
    {
        AspxCommonInfo aspxCommonObj = new AspxCommonInfo();

        aspxCommonObj.StoreID     = StoreID;
        aspxCommonObj.PortalID    = PortalID;
        aspxCommonObj.CultureName = CultureName;
        JavaScriptSerializer         json_serializer          = new JavaScriptSerializer();
        AspxYouMayAlsoLikeController objYouMayLike            = new AspxYouMayAlsoLikeController();
        YouMayAlsoLikeSettingInfo    lstYouMayAlsoLikeSetting = objYouMayLike.GetYouMayAlsoLikeSetting(aspxCommonObj);

        if (lstYouMayAlsoLikeSetting != null)
        {
            object obj = new
            {
                EnableYouMayAlsoLike     = lstYouMayAlsoLikeSetting.IsEnableYouMayAlsoLike,
                NoOfYouMayAlsoLikeItems  = lstYouMayAlsoLikeSetting.YouMayAlsoLikeCount,
                NoOfYouMayAlsoLikeInARow = lstYouMayAlsoLikeSetting.YouMayAlsoLikeInARow,
                YouMayAlsoLikeModulePath = YouMayAlsoLikeModulePath
            };
            Settings = json_serializer.Serialize(obj);
        }
    }