Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created July 4, 2017 01:23
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 dcomartin/9fc1329add61eaba85d21c2e46fcbea1 to your computer and use it in GitHub Desktop.
Save dcomartin/9fc1329add61eaba85d21c2e46fcbea1 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
services.AddMvc()
.AddJsonOptions(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment