Takes a list of SelectListItem and converts them into a SelectList.
public static SelectList SelectList(this IEnumerable<SelectListItem> source,
bool firstEmpty = true, string emptyValue = "",
bool emptyGuid = false)
A list of SelectListItem to convert into a SelectList.
Make the first item in the SelectList an empty or blank item.
If the firstEmpty is true then set this value as the empty value.
If the firstEmpty is true then set this value as the Empty Guid {00000000-0000-0000-0000-000000000000} value.
ViewBag.ManualList = (new SelectListItem[] { new SelectListItem() { Text = "One", Value = "1" }, new SelectListItem() { Text = "Two", Value = "2" } }).SelectList();