passer la vue Viewbag selectListItem sur 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