예제 #1
0
        public IList <ISiteRole> GetRolesUserIsNotIn(
            int siteId,
            int userId)
        {
            if (multiTenantOptions.UseRelatedSitesMode)
            {
                siteId = multiTenantOptions.RelatedSiteId;
            }

            IList <ISiteRole> roles = new List <ISiteRole>();

            using (DbDataReader reader = dbRoles.GetRolesUserIsNotIn(siteId, userId))
            {
                SiteRole role = new SiteRole();
                role.LoadFromReader(reader);

                roles.Add(role);
            }
            return(roles);
        }