public static IEnumerable <SelectListItem> GetStates(string selectedValue) { var states = new StateList(); var list = states.GetStates() .ToList() .Select(m => new SelectListItem { Value = m.Abbreviation.ToString(), Text = m.Name.ToString(), Selected = (m.Abbreviation == selectedValue) }); return(list); }