@Html.Partial("_Sidebar") @{ int port; if (Model.Port == 0) { port = 8081; } else { port = Model.Port; } }