@{
    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/Faq/Item")">
            FAQ 관리
        </a>
    </li>
    <li class="nav-item">
        <a class="nav-link @(currentController == "Category" && currentAction == "Index" ? "active" : "")" href="@Url.Content("~/Page/Faq")">
            FAQ 분류
        </a>
    </li>
</ul>