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