Well, I have an enum for the days of the week, being:
Segunda = 2,
[Display(Name="Terça")]
Terca = 3,
Quarta = 4,
Quinta = 5,
Sexta = 6,
[Display(Name = "Sábado")]
Sabado = 7
So I build an object that has a day of the week in Api
, and I do a get json in javascript and show it on the screen using knockout
, the problem is that if I leave it as an enum, it will show the number equivalent to the day, and if I do ToString()
it shows the normal name, no accents and no special characters, what I would like to display was the display, is there any method that does this? or do I have to do "on hand"?