public ActionResult EnabledConents(string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { WebFriendLinksEntity friendLinksEntity = new WebFriendLinksEntity(); friendLinksEntity.F_Id = keyValue; friendLinksEntity.F_EnabledMark = true; linksApp.UpdateForm(friendLinksEntity); return(Success("启用成功")); } return(Success("请选择启用项")); }
public void SubmitForm(WebFriendLinksEntity entity, string keyValue) { if (!string.IsNullOrEmpty(keyValue)) { entity.Modify(keyValue); service.Update(entity); } else { entity.Create(); service.Insert(entity); } }
public void UpdateForm(WebFriendLinksEntity entity) { service.Update(entity); }
public void Delete(WebFriendLinksEntity entity) { service.Delete(entity); }
public ActionResult SubmitForm(WebFriendLinksEntity friendLinksEntity, string keyValue) { linksApp.SubmitForm(friendLinksEntity, keyValue); return(Success("操作成功。")); }