| | |
| | | } |
| | | |
| | | [HttpPost, Route("Del")] |
| | | public virtual ActionResult Del(object key) |
| | | public virtual ActionResult Del([FromBody] object[] key) |
| | | { |
| | | return Json(InvokeService("DeleteData", new object[] { key })); |
| | | } |
| | |
| | | return Json(result); |
| | | } |
| | | |
| | | [HttpPost, Route("DownLoadTemplate")] |
| | | [HttpPost, HttpGet, Route("DownLoadTemplate")] |
| | | public virtual ActionResult DownLoadTemplate() |
| | | { |
| | | WebResponseContent result = InvokeService("DownLoadTemplate", new object[] { }) as WebResponseContent; |
| | |
| | | public virtual ActionResult Import(List<IFormFile> fileInput) |
| | | { |
| | | 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) |