This is my JavaScript calling data
{
data: "FuelType",
className: "table-col9"
}
This is my cshtml
<th class="table-col9">@ExpenseRes.FuelType</th>
This is my model Enum type
public enum FuelType
{
Fuel=1,
Diesel,
LPG
}
enter image description here In the photo I took a screenshot, 3 appears because I chose the LPG option. It probably gives the number of rows, it shows 3 because it is a enum type, but I want the name to appear in the field in the screenshot I took.