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;
                
            }

        }
 public HLeisureRepository(hleisureDbContext ctx)
 {
     _ctx = ctx;
 }