// GET: Admin/LoaiThanhVien public ActionResult Index(string searchString, int page = 1, int pagesize = 5) { var dao = new UserGroupDAO(); var list = dao.ListAll(searchString, page, pagesize); return(View(list)); }
// public void SetViewBag(string selectedId = null) { var dao = new UserGroupDAO(); ViewBag.GroupID = new SelectList(dao.ListAll(), "ID", "Name", selectedId); }