I get an error when trying to pass a collection of Enums to a DropDownList.
The collection is of type IEnumerable.
The error states: "Cannot resolve method DropDownListFor( lambda expression, System.Collections.Generic.IEnumerable"
The code:
@Html.DropDownListFor(m => listing.WorkflowStatus, Model.WorkflowStatuses, new { id = listing.WorkflowStatus, onchange = "$(this.form).submit()" })
I'm completely stuck. Can anyone advice me on what the problem might be?