selectlistitem c# mvc from controller code example
Example: drop down list mvc5
@Html.DropDownList("MySkills", (IEnumerable
<SelectListItem>)ViewBag.MySkills)
@Html.DropDownList("MySkills", (IEnumerable
<SelectListItem>)ViewBag.MySkills)