Beispiel #1
0
        public bool KurumsalGiris(OturumResult oturum)
        {
            var sorgu = from o in db.Oturums join s in db.Sirkets on o.ID equals s.OturumID
                        where o.KullanıcıAdı == oturum.KullaniciAdi &&
                        o.Sifre == oturum.Sifre && o.ID == s.OturumID
                        select new { o, s };

            if (sorgu.Any())
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }
Beispiel #2
0
        public bool MusteriGiris(OturumResult oturum)
        {
            var sorgu = from o in db.Oturums join m in db.Müsteris on o.ID equals m.OturumID
                        where o.KullanıcıAdı == oturum.KullaniciAdi &&
                        o.Sifre == oturum.Sifre && o.ID == m.OturumID
                        select new { o, m };

            if (sorgu.Any())
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }