Beispiel #1
0
        public bool Login(string username, string password) //login olup olmadığını test etmek için kullanılır.
        {
            HastaneOtomasyonuGüncelEntities context = new HastaneOtomasyonuGüncelEntities();
            var user = (from DoktorBilgileri in context.DoktorBilgileri where DoktorBilgileri.TCKN == username && DoktorBilgileri.DoktorSifre == password select DoktorBilgileri).FirstOrDefault();

            if (user != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
        public bool Login(string username, string password) //login olup olmadığını test etmek için kullanılır.
        {
            HastaneOtomasyonuGüncelEntities context = new HastaneOtomasyonuGüncelEntities();
            var user = (from PersonelGirisi in context.PersonelGirisi where PersonelGirisi.PersonelKullaniciAdi == username && PersonelGirisi.PersonelSifre == password select PersonelGirisi).FirstOrDefault();

            if (user != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }