コード例 #1
0
ファイル: AccountController.cs プロジェクト: Oldsooh/SHTS
 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);
 }