|
|
|
@ -7,6 +7,7 @@ using Infrastructure.Security;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.Localization;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace UserCenter.Controllers
|
|
|
|
@ -30,8 +31,11 @@ namespace UserCenter.Controllers
|
|
|
|
|
|
|
|
|
|
public IActionResult Index()
|
|
|
|
|
{
|
|
|
|
|
//var modelMetadata = this.GetModelMetadata<RegisterModel>();
|
|
|
|
|
//var json = modelMetadata.ToJson();
|
|
|
|
|
var modelMetadata = this.GetModelMetadata<RegisterModel>();
|
|
|
|
|
var json = JsonConvert.SerializeObject(modelMetadata, new JsonSerializerSettings
|
|
|
|
|
{
|
|
|
|
|
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
|
|
|
|
|
});
|
|
|
|
|
return View(this._siteRepo.ReadOnlyTable().ToList());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|