// GET: Manager public ActionResult Index(int pageIndex = 1) { var pt = mb.GetAll(); PagingHelper <Manager> ManagerPaging = new PagingHelper <Manager>(10, pt); ManagerPaging.PageIndex = pageIndex; return(View(ManagerPaging)); //var managers = db.Manager; //return View(managers.ToList()); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable dt = bllman.GetAll(); Repeater1.DataSource = dt; Repeater1.DataBind(); } }