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("请选择启用项"));
 }
Пример #2
0
 public void SubmitForm(WebNodeEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         service.Insert(entity);
     }
 }
Пример #3
0
 public void UpdateForm(WebNodeEntity entity)
 {
     service.Update(entity);
 }
Пример #4
0
 public void Delete(WebNodeEntity entity)
 {
     service.Delete(entity);
 }
 public ActionResult SubmitForm(WebNodeEntity nodeEntity, string keyValue)
 {
     nodeApp.SubmitForm(nodeEntity, keyValue);
     return(Success("操作成功"));
 }