예제 #1
0
        public void Bind()
        {
            var data = videoSvc.GetAll();

            PagedDataSource pds = new PagedDataSource();

            pds.DataSource = data;
            this.RepVideoList.DataSource = pds;
            this.RepVideoList.DataBind();
        }
        public ActionResult VideoList()
        {
            SessionKontrol();
            if (_users != null)
            {
                var serviceResult = _VideoServices.GetAll().OrderByDescending(x => x.CreationDate);

                return(View(serviceResult));
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }
예제 #3
0
        public void getVideo()
        {
            var video = videoSvc.GetAll();

            Videotxt = video;
        }