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