@{
    var sector = ViewData["Sector"] as string ?? string.Empty;
    var boardID = ViewData["BoardID"];
    var queryString = (ViewData["QueryString"] as string ?? string.Empty).TrimStart('?');

    var tabs = new List<(string Href, string Sector, string Name)>
    {
        ($"/Forum/Board/List/Edit/{boardID}?{queryString}", "Edit", "기본"),
        ($"/Forum/Board/Meta/List/{boardID}?{queryString}", "List", "목록"),
        ($"/Forum/Board/Meta/View/{boardID}?{queryString}", "View", "열람"),
        ($"/Forum/Board/Meta/Write/{boardID}?{queryString}", "Write", "작성"),
        ($"/Forum/Board/Prefix/{boardID}?{queryString}", "Prefix", "말머리"),
        ($"/Forum/Board/Meta/Comment/{boardID}?{queryString}", "Comment", "댓글"),
        ($"/Forum/Board/Meta/General/{boardID}?{queryString}", "General", "일반"),
        ($"/Forum/Board/Meta/Notify/{boardID}?{queryString}", "Notify", "알림"),
        ($"/Forum/Board/Meta/NotifyTemplate/{boardID}?{queryString}", "NotifyTemplate", "양식"),
        ($"/Forum/Board/Meta/Permission/{boardID}?{queryString}", "Permission", "권한"),
        ($"/Forum/Board/Meta/Exp/{boardID}?{queryString}", "Exp", "경험치"),
        ($"/Forum/Board/Manager/{boardID}?{queryString}", "Manager", "관리자")
    };
}

<ul class="nav nav-tabs">
    @foreach (var (href, key, name) in tabs)
    {
        <li class="nav-item">
            <a class="nav-link @(sector == key ? "active" : "")" href="@href">@name</a>
        </li>
    }
</ul>
<br />