I'm using MVC4 with C# and I have a shared _Layout view that has a link to the home page, "index" via the "homeController".
<p class="site-title">
@if (controller = Roles) {
<a href="~/Roles/Index/" id="logo-holder">
} else {
<a href="~/Home/Index/" id="logo-holder">}
<img class="navbar-header" alt="logo"
src="~/Images/Comtrex_Logo_Blue_&_Orange.png" height="60"
width="302">
<span style="padding-top:2em">Cloud Reporting</span>
</a>
</p>
How can I add and if else statement to navigate to different links depending on the view that the user is currently on?