Exemple #1
0
        //lấy mã vai trò người dùng khi đã đăng nhập thành công
        public static int LayMaVaiTroNguoiDung(string username, string passwword)
        {
            string sql = "select nd.MaVaiTro from NGUOIDUNG nd where nd.TenNguoiDung='" + username + "' and nd.MatKhau='" + passwword + "'";

            return(XL_DULIEU.ThucThiScalar(sql));
        }