Beispiel #1
0
        public override string[] GetRolesForUser(string username)
        {
            nmpibDataContext db = new nmpibDataContext();
            var myRoles         = from roles in db.tbl_roles2users
                                  where roles.tbl_user.UserName == username
                                  select roles.tbl_role.rolename;

            return(myRoles.ToArray());
        }
Beispiel #2
0
        public override string[] GetRolesForUser(string username)
        {
            nmpibDataContext db = new nmpibDataContext();
            var myRoles = from roles in db.tbl_roles2users
                          where roles.tbl_user.UserName == username
                          select roles.tbl_role.rolename;

            return myRoles.ToArray();
        }