private bool checkLogin(string usrName,string password)
        {
            using (var ctx = new hleisureDbContext())
            {
                string pwd=encryptObjects.Encrypt(password);
                var usr = ctx.users.Where(a => a.userName == usrName && a.password == pwd).FirstOrDefault();
                if (usr != null)
                    return true;
                else
                    return false;
                
            }

        }
Ejemplo n.º 2
0
 public HLeisureRepository(hleisureDbContext ctx)
 {
     _ctx = ctx;
 }