Ejemplo n.º 1
0
 public ActionResult Index()
 {
     AdminUserViewModel viewModel = new AdminUserViewModel();
     try
     {
         AdminRoleManager roleManager = new AdminRoleManager();
         viewModel.AllRoles = roleManager.GetAllRoles();
         AdminUserManager adminManager = new AdminUserManager();
         viewModel.AllAdminUsers = adminManager.GetALl();
     }
     catch (Exception ex)
     {
         LogService.Log("管理员列表", ex.ToString());
     }
     return View(viewModel);
 }