/// <inheritdoc/> public IList <UserInfo> GetUsersByRole(int portalId, string roleName) { return(provider.GetUsersByRoleName(portalId, roleName).Cast <UserInfo>().ToList()); }
/// ----------------------------------------------------------------------------- /// <summary> /// Get the users in a role (as User objects) /// </summary> /// <param name="portalId">Id of the portal (If -1 all roles for all portals are /// retrieved.</param> /// <param name="roleName">The role to fetch users for</param> /// <returns>An ArrayList of UserInfo objects</returns> /// <history> /// [cnurse] 01/27/2006 created /// </history> /// ----------------------------------------------------------------------------- public ArrayList GetUsersByRoleName(int portalId, string roleName) { return(provider.GetUsersByRoleName(portalId, roleName)); }
/// <summary> /// Get the users in a role (as User objects) /// </summary> /// <param name="PortalID">Id of the portal (If -1 all roles for all portals are /// retrieved.</param> /// <param name="RoleName">The role to fetch users for</param> /// <returns>An ArrayList of UserInfo objects</returns> public ArrayList GetUsersByRoleName(int PortalID, string RoleName) { return(provider.GetUsersByRoleName(PortalID, RoleName)); }