/// <summary> /// Returns LogoEntity object for a given portalid with provided culturecode. /// </summary> /// <param name="userModuleID">userModuleID</param> /// <param name="portalID">portalID</param> /// <param name="CultureCode">CultureCode</param> /// <returns>LogoEntity object for a given portalid with provided culturecode</returns> public LogoEntity GetLogoData(int userModuleID, int portalID, string CultureCode) { try { LogoEntity objLogoEntity = new LogoEntity(); if (HttpRuntime.Cache["LogoImage_" + CultureCode + "_" + userModuleID.ToString()] != null) { objLogoEntity = HttpRuntime.Cache["LogoImage_" + CultureCode + "_" + userModuleID.ToString()] as LogoEntity; } else { LogoDataProvider objProvider = new LogoDataProvider(); objLogoEntity = objProvider.GetLogoData(userModuleID, portalID, CultureCode); if (objLogoEntity != null) { HttpRuntime.Cache["LogoImage_" + CultureCode + "_" + userModuleID.ToString()] = objLogoEntity; } } return objLogoEntity; } catch (Exception ex) { throw ex; } }
public LogoEntity GetLogoData(int userModuleID, int portalID, string CultureCode) { try { LogoEntity objLogoEntity = new LogoEntity(); if (HttpRuntime.Cache["LogoImage_" + CultureCode + "_" + userModuleID.ToString()] != null) { objLogoEntity = HttpRuntime.Cache["LogoImage_" + CultureCode + "_" + userModuleID.ToString()] as LogoEntity; } else { LogoDataProvider objProvider = new LogoDataProvider(); objLogoEntity = objProvider.GetLogoData(userModuleID, portalID, CultureCode); if (objLogoEntity != null) { HttpRuntime.Cache["LogoImage_" + CultureCode + "_" + userModuleID.ToString()] = objLogoEntity; } } return(objLogoEntity); } catch (Exception ex) { throw ex; } }