public IList <RoleInfo> GetRoles(int portalId) { var cacheKey = String.Format(DataCache.RolesCacheKey, portalId); return(CBO.GetCachedObject <IList <RoleInfo> >(new CacheItemArgs(cacheKey, DataCache.RolesCacheTimeOut, DataCache.RolesCachePriority), c => provider.GetRoles(portalId).Cast <RoleInfo>().ToList())); }
/// <summary> /// Get a list of roles for the Portal /// </summary> /// <param name="PortalId">The Id of the Portal</param> /// <returns>An ArrayList of RoleInfo objects</returns> public ArrayList GetPortalRoles(int PortalId) { return(provider.GetRoles(PortalId)); }