Creates a SelectListItem from a a supplied ID and value. Generally useful inside lamda functions.
public static Func<object, string, SelectListItem> SelectListItem = (object id, string text)
Id value for the select list item. This will be converted to a string.
The text value to show in the drop down list.
ViewBag.List = db.MySpGet().ToSelectList(x => SiUtil.SelectListItem(x.MyFieldId, x.MyField));