Link to home
Start Free TrialLog in
Avatar of finance_teacher
finance_teacher

asked on

ASP.Net MVC 4 C# -- Roles.GetRolesForUser() "LIKE" statement ?

I have 20+ roles that start with "BUICK"
How can I get the below "LIKE" statement working ?

I am MVC4 simpleMembership with the below SYSTEM generated database tables.
  webpages_UsersInRoles
  UserProfile
  webpages_Membership
  webpages_Roles

                               if (User.IsInRole("BUICK_LeadMan")) --below works
                               -- trying to do this instead, but it fails --> if (Roles.GetRolesForUser().LIKE("BUICK"))
                                   {
                                       <li>@Html.ActionLink("About1", "About", "Home")</li>
                                   }
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial