In your controller:
var references = _reference.Get("01").AsEnumerable().OrderBy(o => o.Order);
List<SelectListItem> items = references.Select(r =>
new SelectListItem()
{
Value = r.RowKey,
Text = r.Value
}).ToList();
var emptyItem = new SelectListItem(){
Value = "",
Text = "00"
};
items.Insert(0, emptyItem);
ViewBag.AccountIdList = new SelectList(items);
In your opinion:
@Html.DropDownList("AccountID", ViewBag.AccountIdList)
Please note: there is no need to add new { id = "AccountId" }, since MVC will give this identifier in any case.
Edit:
, , ?
, ( ):
List<SelectListItem> items = new List<SelectListItem>();
var emptyItem = new SelectListItem(){
Value = "",
Text = "00"
};
items.Add(emptyItem);
ViewBag.AccountIdList = new SelectList(items);