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")); } }
public void getVideo() { var video = videoSvc.GetAll(); Videotxt = video; }