Files
upo-senior-assistant/SeniorAssistant/Views/Shared/Breadcrumb.cshtml
Giacomo Bertolazzi 20015159 1246116804 Besciamello (#1)
* Fixed login & auth
* Added dynamic breadcrumb
* Added DOC
* Added Patient
* Added Notifications
* Added Messages
* Refactoring api
* Re-writed menu
* Removed unused things
* Created README
2019-01-15 21:35:00 +01:00

17 lines
492 B
Plaintext

@{
var controller = ViewContext.RouteData.Values["Controller"];
var action = ViewContext.RouteData.Values["Action"];
}
<div class="breadcrumb">
@Html.ActionLink("Home", "Index", "Home")
@if (controller.ToString() != "Home")
{
@:> @Html.ActionLink(controller.ToString(), "Index", controller.ToString())
}
@if (action.ToString() != "Index")
{
@:> @Html.ActionLink(action.ToString(), action.ToString(), controller.ToString())
}
</div>