samedi 6 janvier 2018

ASP.NET Core 2.0 MVC how to make a dynamic menu (best practice)

I'm building some kind of management platform for a music academy. I must build the main navigation menù based on my business logic (loginStatus, kindOfUser, userGrants etc...)

I would like to do something fast, simple and clean and I was thinking about something like: An Action (e.g. Home/MainMenu) in which I can write my business logic that will return a PartialView then render it directly on the _Layout.

I'm not sure about that, hope you can help me and give me your point of view.

Aucun commentaire:

Enregistrer un commentaire