view
@Html.DropDownListFor(x => x.Position.Id, ((IEnumerable< Position >)ViewBag.PositionList).Select(s => new SelectListItem { Value = s.Id.ToString(), Text = s.Name }))
@Html.ValidationMessageFor(x=>x.Position);
huozhe
@Html.DropDownListFor(x => x.Position.Id,new selectList(viewBag.list,"id","name"));
控制器
ViewBag.PositionList=biz.GetAll()