Beispiel #1
0
        /// <summary>
        /// 显示直播(Liv)详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult LivDetail(int id)
        {
            ViewBag.CurrentUser = CurrentUser;
            ViewBag.Comments    = TeachingLivMgr.GetTeachingComments(id, 1);
            var obj = TeachingLivMgr.GetTeachingLiv(id);

            return(View(obj));
        }
Beispiel #2
0
        /// <summary>
        /// 显示视频回放(Vod)详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult VodDetail(int id)
        {
            ViewBag.CurrentUser = CurrentUser;
            ViewBag.Comments    = TeachingLivMgr.GetTeachingComments(id, 0);
            if (CurrentUser != null)
            {
                ViewBag.Collection = AccountMgr.GetUserCollection(CurrentUser.id, ContentType.回放, id);
            }

            var obj = TeachingVodMgr.GetTeachingVod(id);

            return(View(obj));
        }