I have a list of type stored procedure which have an ID and a Name as data in it. i have property of int type in model and a list of same stored procedure. now i want to bind this information into ListBoxFor
in view i have written this
@Html.ListBoxFor(x => x.HobbyId, new MultiSelectList(Model.listHobby, "pkHobbyId", "Hobby"))
but i am getting an error
The parameter 'expression' must evaluate to an IEnumerable when multiple selection is allowed.
Please Help how to bind.