Exposing Route Data for Dynamic Navigation in .NET MVC

Sometimes, for example dynamic navigation, we may need to expose data about the current URL, this post looks at using ViewContext to expose this data. The scenario is as follows, you know a user is part of a policy that allows administration access, but your layout caters for both regular users and an administration dashboard. … Continue reading Exposing Route Data for Dynamic Navigation in .NET MVC