create base class for validators

This commit is contained in:
2020-09-08 14:33:31 +02:00
parent 2246ac9ee0
commit b0d5261a0a
6 changed files with 47 additions and 7 deletions
+4
View File
@@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
@@ -49,6 +50,9 @@ namespace zero.Debug.Controllers
{
count = items.Count,
items
}, new JsonSerializerSettings()
{
TypeNameHandling = TypeNameHandling.None
});
}