I understand that a good way to check if an user is in a role is:
if (User.IsInRole(\"Admin\")) { }
However How can I check if my user is
What about this?
if (User.Roles.Count() != 0) { //User is not in any role }else { //User is in at least one role }