Пример #1
0
        private bool IsUserExist(string userName, string password)
        {
            kutuphaneDataContext context = new kutuphaneDataContext();
            var q = from p in context.Users
                    where p.Username == userName &&
                    p.Password == password
                    select p;

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