Last active
July 10, 2020 21:47
-
-
Save ankitvijay/4b6c8bb9db8937a58622b2da20b44841 to your computer and use it in GitHub Desktop.
Part 4 - Startup.cs - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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