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()); }
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(); }