I'm trying to show a list of all users but am unsure how to go about this using the MVC model.
I can obtain the list of all users via the Membership.GetAllUsers() method however if I try to pass this to the view from the ActionResult, I'm told that Model is not enumerable.
Membership.GetAllUsers()is not supported. Instead use,using (var ctx = new UsersContext()) { var users = ctx.UserProfiles.ToList(); }