Ejemplo n.º 1
0
        public override string[] GetRolesForUser(string email)
        {
            DBprojectEntities db   = new DBprojectEntities();
            string            data = db.Logins.Where(x => x.Email == email).SingleOrDefault().Role.RoleName;

            string[] result = { data };
            return(result);
        }