Masterminds dotnet
Friday, 8 August 2014
Display enum value in string format, in WEB API Response page.
Add below configuration in
WebApiConfig
Class, in Register Method.
json.SerializerSettings.Converters.Add(
new
Newtonsoft.Json.Converters.
StringEnumConverter
());
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment