Beispiel #1
0
        public DataTable getalldatasinhvien()
        {
            CON = new ConnectData();
            DataTable dt = null;

            dt = CON.getdata("SELECT * FROM View_SinhVien");
            return(dt);
        }
Beispiel #2
0
        public Boolean kiemtradangnhap(string user, string pass)
        {
            CON = new ConnectData();
            DataTable dt    = CON.getdata("select * from Users where username = '******' and password = '******' "); // lấy dữ liệu
            Boolean   check = false;

            if (dt != null)
            {
                if (dt.Rows.Count == 1)
                {
                    check = true;
                }
                else
                {
                    check = false;
                }
            }
            return(check);
        }