@Html.DropDownListFor requires a List of SelectListItem. Is there a way to use a custom object here instead of select list item and tell the drop down list which properties of the custom object to use for the value and text? Or is there an easy way to translate my customer object to a SelectListItem?
I have a Status object: public string StatusCode {get;set;} public string StatusCodeDescription {get;set;}
So right now I would have to write a for loop to translate a Status to a SelectListItem for all my Lists... This just seems like there needs to be an easier way...