// GET: Admin/Notices/Create public IActionResult Create() { NoticeViewModel viewModel = new NoticeViewModel { Notice = new Notice { Category = new Category(), Creator = new IdentityUser() }, Categories = _categoryAdminManager.findAll(), Users = _userAdminManager.FindAll() }; return(View(viewModel)); }
// GET: User public ActionResult Index() { IEnumerable <IdentityUser> rawUsers = _userAdminManager.FindAll(); IEnumerable <UserViewModel> users = new LinkedList <UserViewModel>(); foreach (IdentityUser rawuser in rawUsers) { UserViewModel user = UserViewModel.Parse(rawuser, _context, _userManager); ((LinkedList <UserViewModel>)users).AddLast(user); } return(View(users)); }