Example #1
0
        public ActionResult ManageUsers()
        {
            var model = new ManageUsersViewModel();

            model.AllRoles = bugTrackerHelper.GetAllRolesNames();
            model.Users    = bugTrackerHelper.GetAllUsers().Select(user => new UserViewModel
            {
                UserId      = user.Id,
                UserName    = user.UserName,
                DisplayName = user.DisplayName,
                UserRoles   = UserManager.GetRoles(user.Id).ToList()
            }).ToList();

            return(View(model));
        }