I am trying to Implement Role Based asp.net MVC 5 security and I found an article by Brij Mohan Dammani online which fit my need. My only issue is how to add a drop down menu.
Below is the portion of the code I found.
@{
var menu = new RoleMenu().Add(new RoleMenuItem("Home", "Index", "Home","All"))
.Add(new RoleMenuItem("About", "About", "Home","All"))
.Add(new RoleMenuItem("Part A", "PartA", "Home","Authenticated"))
.Add(new RoleMenuItem("Part B", "PartB", "Home","Anonymous"))
.Add...;
foreach (var link in menu)
{
@: <li> @Html.ActionLink(link.LinkText, link.ActionName,link.ControllerName)</li>
}
}
I need to add a drop down menu like this code below to the above
...
Go to the complete details ...