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