/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <returns></returns> public void SaveForm(string keyValue, Bulletin_dealEntity entity) { try { service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
public ActionResult SaveForm(string keyValue, Bulletin_dealEntity entity) { string HAPPENTIME_DEAL = Request["HAPPENTIME_DEAL"] ?? ""; if (HAPPENTIME_DEAL.Length > 0) { entity.HAPPENTIME_DEAL = Convert.ToDateTime(HAPPENTIME_DEAL); } bulletin_dealbll.SaveForm(keyValue, entity); return(Success("操作成功。")); }