@{
    string currentAction = ViewContext.RouteData.Values["action"]?.ToString();
    string currentController = ViewContext.RouteData.Values["controller"]?.ToString();
}

<ul class="nav nav-pills justify-content-center">
    <li class="nav-item">
        <a class="nav-link @(currentController == "Item" && currentAction == "Index" ? "active" : "")" href="@Url.Content("~/Page/Banner/Item")">
            배너 관리
        </a>
    </li>
    <li class="nav-item">
        <a class="nav-link @(currentController == "Position" && currentAction == "Index" ? "active" : "")" href="@Url.Content("~/Page/Banner")">
            배너 위치
        </a>
    </li>
</ul>