dropdownlist in mvc 5 razor example viewbag
Example: generate a dropdown list from array data using razor .net mvc
@Html.DropDownList("myList", ViewBag.myList as SelectList)
@Html.DropDownList("myList", ViewBag.myList as SelectList)