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); } }
public Doktor Getir(int doktorId) { Doktor doktor = doktorDal.Get(x => x.Id == doktorId); return(doktor); }