I have defined an enum as following.
public enum Month
{
January,
February,
March,
April,
May,
June,
July,
August,
September,
October,
November,
December
}
I am getting and sending it back to client.
public List<Month> GetMonths()
{
return Enum.GetValues(typeof(Month)).Cast<Month>().ToList();
}
However, I am receiving 0,1,2,3,....11 values at client end instead of actual string values i.e. month names.
How i can send actual month name as values?