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("请选择启用项"));
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 public void UpdateForm(WebNodeEntity entity)
 {
     service.Update(entity);
 }
Exemplo n.º 4
0
 public void Delete(WebNodeEntity entity)
 {
     service.Delete(entity);
 }
 public ActionResult SubmitForm(WebNodeEntity nodeEntity, string keyValue)
 {
     nodeApp.SubmitForm(nodeEntity, keyValue);
     return(Success("操作成功"));
 }