public ActionResult Save(IMS_WT_DZRW ent) { Func <ExtResult> fun = () => { if (ent.ID == 0) { ent.CJR = CurrentUser.GetCurrentUser().UserInfo.YHID; ent.CJSJ = System.DateTime.Now; } ExtResult ret = new ExtResult(); dalActionTasks.SaveOrUpdate(ent); ret.success = true; return(ret); }; return(base.Save(fun)); }
public ActionResult Create() { var ent = new IMS_WT_DZRW(); return(View("Edit", ent)); }