示例#1
0
        private bool girisdoğrulaiki(int yId, string ySifre)
        {
            KutuphaneOtoEntities3 context = new KutuphaneOtoEntities3();
            var sorgus = from p in context.Admins
                         where p.AdminId == yId &&
                         p.Password == ySifre
                         select p;

            if (sorgus.Any())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }