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