Пример #1
0
        public override string[] GetRolesForUser(string username)
        {
            IUsersNoteAuthuserBLL authuser = new UsersNoteAuthuserLogic();
            string role = authuser.GetUserRole(username);

            return(role.Split(':'));
        }
Пример #2
0
        public override bool IsUserInRole(string username, string roleName)
        {
            IUsersNoteAuthuserBLL authuser = new UsersNoteAuthuserLogic();

            return(authuser.GetUserRole(username) == roleName);
        }