Inside razor view I'm rendering combobox with enum values like this
@Html.DropDownListFor(m => m.CarType, new SelectList(Enum.GetValues(typeof(CarTypeEnum))),
"Select value", new { @class = "form-control" })
public enum CarTypeEnum
{
[StringValue("Car type one")]
CarTypeOne = 1,
[StringValue("Car type two")]
CarTypeTwo = 2,
}
How can I use DropDownListFor helper to render StringValue inside combobox like
Car type one
instead of CarTypeOne