public ActionResult SaveRegistCode(string keyValue, RegistManageEntity entity) { RegistManageBLL registManageBLL = new RegistManageBLL(); registManageBLL.SaveForm(keyValue, entity); return(Success("操作成功")); }
public ActionResult GetRegistManageForm(string keyValue) { RegistManageBLL registManageBLL = new RegistManageBLL(); RegistManageEntity data = registManageBLL.GetForm(keyValue); return(Json(data, JsonRequestBehavior.AllowGet)); }
public ActionResult GetRegistCodeList(string keyword) { RegistManageBLL registManageBLL = new RegistManageBLL(); List <RegistManageEntity> entities = registManageBLL.GetList(keyword); return(Json(entities, JsonRequestBehavior.AllowGet)); }
public ActionResult RemoveRegistManage(string keyValue) { RegistManageBLL registManageBLL = new RegistManageBLL(); registManageBLL.RemoveRegistManage(keyValue); return(Success("操作成功")); }
public object GetApiUrl([FromBody] JObject json) { try { string res = json.Value <string>("json"); dynamic dy = JsonConvert.DeserializeObject <ExpandoObject>(res); string registcode = dy.registcode;//注册码 RegistManageBLL registManageBLL = new RegistManageBLL(); RegistManageEntity data = registManageBLL.GetEntity(registcode); if (data == null) { return(new { Code = -1, Info = "获取数据失败", Message = "没有找到对应的数据" }); } return(new { Code = 0, Info = "获取数据成功", data }); } catch (Exception ex) { return(new { Code = -1, Info = "获取数据失败", ex.Message }); } }