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("请选择启用项"));
 }
Пример #3
0
 public void SubmitForm(WebFeedbackEntity entity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         entity.Modify(keyValue);
         service.Update(entity);
     }
     else
     {
         entity.Create();
         service.Insert(entity);
     }
 }
Пример #4
0
 public void Delete(WebFeedbackEntity entity)
 {
     service.Delete(entity);
 }
Пример #5
0
 public void UpdateForm(WebFeedbackEntity entity)
 {
     service.Update(entity);
 }