Exemplo n.º 1
0
        public async Task<ActionResult> Admins()
        {
            UserIndexModel model = new UserIndexModel();

            model.LoggedInUser = await userService.GetCurrentUser();
            model.Title = "Users > Admins";
            model.FullNavList = CreateUserControllerNavList();
            model.Users = userService.GetAdmins();

            return View("Index", model);
        }
Exemplo n.º 2
0
        // GET: User
        public async Task<ActionResult> Index()
        {
            ModelState.Clear();

            UserIndexModel model = new UserIndexModel();

            model.LoggedInUser = await userService.GetCurrentUser();
            model.Users = userService.GetAllUsers().OrderBy(u => u.UserName).ToList();
            model.Title = "Users";
            model.FullNavList = CreateUserControllerNavList();

            return View(model);
        }