public ActionResult _slideshow() { hypster_tv_DAL.videoFeaturedManager fManager = new hypster_tv_DAL.videoFeaturedManager(); List <hypster_tv_DAL.videoFeaturedSlideshow> video_list = fManager.getFeaturedVideos(); return(View(video_list)); }
public ActionResult GetSideVideos() { // 1.general declarations //----------------------------------------------------------------------------------------------------- hypster_tv_DAL.videoFeaturedManager videoManager = new hypster_tv_DAL.videoFeaturedManager(); List <hypster_tv_DAL.videoFeaturedSlideshow> videos_list = videoManager.getFeaturedVideos(); //----------------------------------------------------------------------------------------------------- return(View(videos_list)); }
// // GET: /VideoManagement/featuredVideo/ public ActionResult Index() { if (Session["Roles"] != null && Session["Roles"].Equals("Admin")) { hypster_tv_DAL.videoFeaturedManager featuredVideoManager = new hypster_tv_DAL.videoFeaturedManager(); List <hypster_tv_DAL.videoFeaturedSlideshow> videos_list = new List <hypster_tv_DAL.videoFeaturedSlideshow>(); videos_list = featuredVideoManager.getFeaturedVideos(); return(View(videos_list)); } else { return(RedirectPermanent("/home/")); } }