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("请选择启用项")); }
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("操作成功。")); }
public void UpdateForm(WebContentEntity entity) { service.Update(entity); }
public void Delete(WebContentEntity entity) { service.Delete(entity); }