Ok, so I have an enum from which I make a select list. After I save data, on view it display the value (number) and I want to see the text. How do I do that?
- public enum IsolationType
- {
- Mechanical = 1,
- Electrical = 2
- }
- >Isolation Type
- class="form-control" style="font-size:12px;">@Html.DisplayFor(modelItem => item.IsoType)


Viswanatha SwamyPosted May 27, 2020, 6:13 AM
Marius VasilePosted May 27, 2020, 8:58 AM
Viswanatha SwamyPosted May 27, 2020, 5:35 AM
Marius VasilePosted May 27, 2020, 5:30 AM
Viswanatha SwamyPosted May 27, 2020, 5:23 AM