Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello ,

i am working on MVC application using razor views. i need to get the menu items on home page based on the users who logged into the site. So i wrote a store proc and accessing it in controller and getting list of menu items assigned to the log-in user.

Now how do i map this list to the model and show it on the view for menu items. tried some different ways
Posted

1 solution

Why don't you use roles? you can define roles base on users kind, and limit controllers on role
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900