fix vali middleware

This commit is contained in:
HTR
2018-07-02 18:15:35 +08:00
parent 2e19235619
commit 1b5155aeaa
14 changed files with 358 additions and 226 deletions
+16
View File
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace COMCMS.Web.Common
{
public static class JsonExtension
{
public static string ToJson<TEntity>(this TEntity entity) where TEntity : class
{
return JsonConvert.SerializeObject(entity);
}
}
}