Pass Viewbag SelectListItem to Razor
//viewbag with selectlist
@Html.DropDownList("AccountId", (IEnumerable<SelectListItem>)ViewBag.Accounts, null, new { @class ="form-control" })
// viewbag contains list<selectlistitem>
@Html.DropDownList("mySelectList", ViewBag.SomethingSelect , "Select Something", new {@class = "form-control text-center w-75"} )
Tense Tortoise