undo remove nulls from api (breaks react-table)

ref #505
This commit is contained in:
Collin M. Barrett 2018-09-21 20:14:25 -05:00
parent efc7ad5cb1
commit 54dbe9ff28

View file

@ -37,8 +37,8 @@ private static void AddMvcCustom(this IServiceCollection services) =>
.SetCompatibilityVersion(CompatibilityVersion.Version_2_1)
.AddJsonOptions(opts =>
{
opts.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
opts.SerializerSettings.ContractResolver = new SkipEmptyContractResolver();
//opts.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
//opts.SerializerSettings.ContractResolver = new SkipEmptyContractResolver();
});
private static void AddRoutingCustom(this IServiceCollection services) =>