コード例 #1
0
        public bool GirisYap(string TC, string sifre, bool yoneticiGirisi)
        {
            if (yoneticiGirisi && TC == "1" && sifre == "admin")
            {
                return(true);
            }

            if (yoneticiGirisi)
            {
                Doktor doktor = doktorDal.Get(x => x.TC == TC);

                return(doktor != null && doktor.Sifre == sifre);
            }
            else
            {
                Hasta hasta = hastaDal.Get(x => x.TC == TC);

                return(hasta != null && hasta.Sifre == sifre);
            }
        }
コード例 #2
0
        public Hasta Getir(string TC)
        {
            Hasta hasta = hastaDal.Get(x => x.TC == TC);

            return(hasta);
        }