public ActionResult Index(string name) { ViewBag.Tocount = Irole.GetTotalCount(); return(View(Irole.GetAll().Where(m => m.Name.Contains(name)).ToArray())); }
// GET: AdminRole //查询全部角色 public ActionResult Index() { ViewBag.Tocount = Irole.GetTotalCount(); return(View(Irole.GetAll())); }