Skip to content

Instantly share code, notes, and snippets.

@ankitvijay
Last active July 10, 2020 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitvijay/4b6c8bb9db8937a58622b2da20b44841 to your computer and use it in GitHub Desktop.
Save ankitvijay/4b6c8bb9db8937a58622b2da20b44841 to your computer and use it in GitHub Desktop.
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