| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.DataProtection.KeyManagement; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.Extensions.Options; |
| | |
| | | return Json(InvokeService("Import", new object[] { fileInput })); |
| | | } |
| | | |
| | | [HttpPost, Route("ExportSeedData"), AllowAnonymous] |
| | | public ActionResult ExportSeedData() |
| | | { |
| | | return Json(InvokeService("ExportSeedData", new object[] { })); |
| | | } |
| | | |
| | | private object InvokeService(string methodName, object[] parameters) |
| | | { |
| | | Type t = Service.GetType(); |