Пример #1
0
        public List <AppUser> GetAllRoleAdmins()
        {
            var roleId = _roleManager.GetAdminRoleId();

            var usersList = _userRoleManager.ListQueryable().Where(x => x.AppRoleId == roleId).Select(u => u.AppUser).ToList();

            return(usersList);
        }
Пример #2
0
        public int GetAdmisCount()
        {
            var Id    = _roleManager.GetAdminRoleId();
            int count = ListQueryable().Where(x => x.AppRoleId == Id).ToList().Count();

            return(count);
        }