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