| | |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.Attributes; |
| | | using WIDESEA_Core.BaseServices; |
| | | |
| | | namespace WIDESEA_Core.BaseController |
| | |
| | | return Json(InvokeService("AddData", new object[] { options })); |
| | | } |
| | | |
| | | [HttpPost, Route("Add")] |
| | | [HttpPost, Route("Add"), MethodParamsValidate] |
| | | public virtual ActionResult Add([FromBody] SaveModel options) |
| | | { |
| | | return Json(InvokeService("AddData", new object[] { options })); |
| | | } |
| | | |
| | | [HttpPost, Route("Update")] |
| | | [HttpPost, Route("Update"), MethodParamsValidate] |
| | | public virtual ActionResult Update([FromBody] SaveModel options) |
| | | { |
| | | return Json(InvokeService("UpdateData", new object[] { options })); |