Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149288 | Nov 20,2019 06:18 PM UTC | Nov 21,2019 08:44 AM UTC | ASP.NET Core - EJ 2 | 2 |
![]() |
Tags: DataGrid |
--> I had issues with pasting in the code.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().AddJsonOptions(options =>
{
options.SerializerSettings.ContractResolver = new Newtonsoft.Json.Serialization.DefaultContractResolver();
});
}
services.AddControllers()
.AddNewtonsoftJson(options =>
{
options.SerializerSettings.ContractResolver = new DefaultContractResolver();
});
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.