public ActionResult EnabledConents(string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         WebContentEntity contentEntity = new WebContentEntity();
         contentEntity.F_Id          = keyValue;
         contentEntity.F_EnabledMark = true;
         contentApp.UpdateForm(contentEntity);
         return(Success("启用成功"));
     }
     return(Success("请选择启用项"));
 }
Пример #2
0
 public void SubmitForm(WebContentEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         service.Insert(entity);
     }
 }
 public ActionResult SubmitForm(WebContentEntity contentEntity, string keyValue)
 {
     contentApp.SubmitForm(contentEntity, keyValue);
     return(Success("操作成功。"));
 }
Пример #4
0
 public void UpdateForm(WebContentEntity entity)
 {
     service.Update(entity);
 }
Пример #5
0
 public void Delete(WebContentEntity entity)
 {
     service.Delete(entity);
 }