public ActionResult EnabledNode(string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { WebNodeEntity nodeEntity = new WebNodeEntity(); nodeEntity.F_Id = keyValue; nodeEntity.F_EnabledMark = true; nodeApp.UpdateForm(nodeEntity); return(Success("栏目启用成功")); } return(Success("请选择启用项")); }
public void SubmitForm(WebNodeEntity entity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { entity.Modify(keyValue); service.Update(entity); } else { entity.Create(); service.Insert(entity); } }
public void UpdateForm(WebNodeEntity entity) { service.Update(entity); }
public void Delete(WebNodeEntity entity) { service.Delete(entity); }
public ActionResult SubmitForm(WebNodeEntity nodeEntity, string keyValue) { nodeApp.SubmitForm(nodeEntity, keyValue); return(Success("操作成功")); }