I have been looking around. I have a Model with an Enum, almost like a Helper to select from witch Column to search:
namespace Test.Models
{
public class ViewEnums
{
public SearchParameter? searchParameter { get; set; }
}
public enum SearchParameter
{
A,
B,
C,
D
}
}
And a View :
@using Test.Models;
(...)
Find :@Html.EnumDropDownListFor("SearchParameter",SearchParameter)
How can I get this EnumDropDownList to work? If it was in the model which was passed I could get it to work. But the Enum is in another Model. Can anyone help me?