public ActionResult AllUsers()
        {
            var users = UserManager.Users;
            var roles = RoleManager.Roles;

            var usersVM = new UsersViewModel();

            usersVM.SetUserList(users);
            usersVM.SetRolesList(roles);

            return(View(usersVM));
        }
Ejemplo n.º 2
0
        public ActionResult MyBloggers()
        {
            BlogManager manager = BlogManagerFactory.Create();

            var bloggers = manager.GetAllBloggers();

            var userVm = new UsersViewModel();

            userVm.SetUserList(bloggers);
            // need a userVM

            return(View(userVm));
        }