Beispiel #1
0
 public override string[] GetRolesForUser(string username)
 {
     BookStoreEntities db = new BookStoreEntities();
     string Uname = db.Customers.Where(x => x.Username == username).FirstOrDefault().AccessLevel;
     string[] result = new string[1];
     result[0] = Uname;
     return result;
 }
Beispiel #2
0
        public override string[] GetRolesForUser(string username)
        {
            BookStoreEntities db    = new BookStoreEntities();
            string            Uname = db.Customers.Where(x => x.Username == username).FirstOrDefault().AccessLevel;

            string[] result = new string[1];
            result[0] = Uname;
            return(result);
        }