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