I\'m trying to use the Html.DropDownList extension method but can\'t figure out how to use it with an enumeration.
Let\'s say I have an enumeration like
Now this feature is supported out-of-the-box in MVC 5.1 through @Html.EnumDropDownListFor()
Check the following link:
https://docs.microsoft.com/en-us/aspnet/mvc/overview/releases/mvc51-release-notes#Enum
It is really shame that it took Microsoft 5 years to implement such as feature which is so in demand according to the voting above!