Article: ASP.Net Core: Call Controller using jQuery AJAX in ASP.Net Core MVC
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddJsonOptions(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());
}
Its not working in asp.net core mvc C#