Пример #1
0
        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()));
        }
Пример #2
0
 /// <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));
 }