Esempio n. 1
0
        public member isMember(string username)
        {
            var query = from o in db.members
                        where o.userName == username
                        select o;
            member m = query.FirstOrDefault();

            return(m);
        }
Esempio n. 2
0
        public member logIn(string username, string pass)
        {
            var query = from o in db.members
                        where o.userName == username && o.password == pass
                        select o;
            member m = query.FirstOrDefault();

            return(m);
        }