Posted on: 2/8/2014 3:21:03 AM | Views : 722

Hi All,
Im using SimpleMembership in my MVC project and am having difficulty trying to create a page where I can list all user accounts in the system.
I came up with the following in the controller;
public ActionResult List() { return View(db.UserProfiles.OrderBy(x => x.UserId)); } Which does not work, it errors out with - foreach statement cannot operate on variables of type '' because '' does not contain a public definition for 'GetEnumerator'
Can any one provide some assistance with this or provide a better way of doing what I would like?

Go to the complete details ...