When I make an ajax call from javascript to a controller the string value is converted correctly and automatically for me to the enum field with the same name.
However, going the other way, returning Json() from a controller, has the enum field send it's numeric value instead of it's string representation.
How can I get the string representation to get back to javascript without invading the serializer all that much. Below is what I currently have and I thought it would work, but it's not. I'm still getting 0 or 1 returned from the ajax call.
[DataContract]
public enum Uom
{
[EnumMember(Value="CD")]
CD = 0,
[EnumMember(Value="SD")]
SD
}