public static IDataReader ExecuteReader(DbCommand command, OnlineShopBaseDAL dal)
        {
            // Kiểm tra, xử lý khi có transaction và không có transaction
            var result = dal.Transaction == null
                             ? Instance.ExecuteReader(command)
                             : Instance.ExecuteReader(command, dal.Transaction);

            return(result);
        }
        public static IDataReader ExecuteReader(DbCommand command, OnlineShopBaseDAL dal, string ConnectionString)
        {
            var instance = EnterpriseLibraryContainer.Current.GetInstance <EnterpriseDatabase>(ConnectionString);
            // Kiểm tra, xử lý khi có transaction và không có transaction
            var result = dal.Transaction == null
                             ? instance.ExecuteReader(command)
                             : instance.ExecuteReader(command, dal.Transaction);

            return(result);
        }