Beispiel #1
0
        public IEnumerable <Vcr> GetVcrs(string k, out int ttl, int pg)
        {
            IPager <Vcr> vcrbBLL = new TrainVcrBLL();
            string       whr     = string.Format("LessonId='{0}' and videopath is not null", k);
            var          vcrmdls = vcrbBLL.Query(whr, null, pg, out ttl);

            return(vcrmdls);
        }
Beispiel #2
0
        /// <summary>
        /// get all vcr list of the certain lesson.
        /// </summary>
        /// <param name="lessonid"></param>
        /// <param name="pg"></param>
        /// <param name="ttl"></param>
        /// <returns></returns>
        public IEnumerable <Vcr> GetVcrs(string lessonid, int pg, out int ttl)
        {
            string whr = string.Format(" LessonId='{0}' ", lessonid);

            return(trainVcrBLL.Query(whr, null, pg, out ttl));
        }