I have the following which show the navigation path of the user inside my _layout share view:-
<ul class="breadcrumb">
<li>
<a href="#">@ViewContext.Controller.ValueProvider.GetValue("controller").RawValue
</a> <span class="divider">/</span>
</li>
<li>
<a href="#">@ViewContext.Controller.ValueProvider.GetValue("action").RawValue</a>
</li>
</ul>
but i have the following two questions:-
Is using
ViewContext.Controller.ValueProvider.GetValue("controller").RawValue
the right way to get the controller namehow i can build the href of the a links to point to the required path ?
Regards