I have a model class, in that for an object named "Action" will be have input from 1 to 5.
if the input is 1 I need to show as Leave Certificate
eg: In the view it will shown as Leave Certificate, but in database the value for that will be stored as 1.
I don't know how to do it in ASP Net core, I don't have any clue, how should the code for it so and so.
I tried to use if else statement but I couldn't. And I tried it with Enum ,then also it leads to an error.