private void GetMegaCategorySetting()
 {
     AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
     aspxCommonObj.StoreID = GetStoreID;
     aspxCommonObj.PortalID = GetPortalID;
     aspxCommonObj.CultureName = GetCurrentCultureName;
     JavaScriptSerializer json_serializer = new JavaScriptSerializer();
     MegaCategoryController objCat = new MegaCategoryController();
     MegaCategorySettingInfo megaCatSetting = objCat.GetMegaCategorySetting(aspxCommonObj);
     if (megaCatSetting != null)
     {
         object obj = new {
         ModeOfView = megaCatSetting.ModeOfView,
         NoOfColumn = megaCatSetting.NoOfColumn,
         ShowCatImage = megaCatSetting.ShowCategoryImage,
         ShowSubCatImage = megaCatSetting.ShowSubCategoryImage,
         Speed = megaCatSetting.Speed,
         Effect = megaCatSetting.Effect,
         EventMega = megaCatSetting.EventMega,
         Direction = megaCatSetting.Direction,
         MegaModulePath = MegaModulePath
     };
         Settings = json_serializer.Serialize(obj); 
     }
 }
    public MegaCategorySettingInfo GetMegaCategorySetting(AspxCommonInfo aspxCommonObj)
    {
        try
        {
            MegaCategoryController mega = new MegaCategoryController();
            MegaCategorySettingInfo lstGetMegaCategorySetting = mega.GetMegaCategorySetting(aspxCommonObj);
            return lstGetMegaCategorySetting;

        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
 private void GetMegaCategorySetting (AspxCommonInfo aspxCommonObj)
 {
     MegaCategoryController objCat = new MegaCategoryController();
     MegaCategorySettingInfo megaCatSetting = objCat.GetMegaCategorySetting(aspxCommonObj);
     if (megaCatSetting != null)
     {
         modeOfView = megaCatSetting.ModeOfView;
         noOfColumn = megaCatSetting.NoOfColumn;
         showCatImage = megaCatSetting.ShowCategoryImage;
         showSubCatImage = megaCatSetting.ShowSubCategoryImage;
         speed = megaCatSetting.Speed;
         effect = megaCatSetting.Effect;
         eventMega = megaCatSetting.EventMega;
         direction = megaCatSetting.Direction;
     }
 }