Exemplo n.º 1
0
        public int CheckUser(string user, string pass)
        {
            PhanHomeEntities ctx = new PhanHomeEntities();
            int key = (from a in ctx.Admin_Login
                       where a.Pass == pass && a.Username == user
                       select a.Id).FirstOrDefault();

            return(key);
        }