Permalink
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 393 Bytes
@model ServiceLayer.UiClasses.DropDownListType
@Html.DropDownListFor( x => x.SelectedValue, Model.KeyValueList.Select( x => new SelectListItem
{
Selected = Model.SelectedValue != null && Model.KeyValueList[0].Key == x.Key,
Text = x.Key,
Value = x.Value
}))