fill a dropdown in razor from a string array in html code example
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)