I want to list all users who are in admin role using WebMatrix.WebData.Security.
I am able see Membership.GetAllUsers() Method is there. But not WebSecurity.GetAllUsers().Why?.
I used Membership.GetAllUsers () method but this throws an exception “Specified method is not supported.”
Can anybody provide alternate ways to achieve this?
Below code may helpful to someone. I used lambda expression.