Skip to content

Instantly share code, notes, and snippets.

@ankitvijay

ankitvijay/Startup.cs

Last active Jul 10, 2020
Embed
What would you like to do?
Part 4 - Startup.cs - 1
// Import Microsoft.AspNetCore.Mvc.NewtonsoftJson
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers().AddNewtonsoftJson(options =>
{
options.SerializerSettings.Converters.Add(new EnumerationJsonConverter());
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.