public ActionResult SubmitForm(SalverEntity userEntity, int?keyValue) { if (!keyValue.HasValue) { userEntity.F_Status = SalverStatus.待租赁.ToString(); userEntity.F_CreatorTime = DateTime.Now; userEntity.F_CreatorUserId = CurrentUser.UserId; userEntity.F_LastModifyTime = DateTime.Now; userEntity.F_LastModifyUserId = CurrentUser.UserId; } else { userEntity.F_LastModifyTime = DateTime.Now; userEntity.F_LastModifyUserId = CurrentUser.UserId; } salverApp.SubmitForm(userEntity, keyValue); return(Success("操作成功。")); }
public void UpdateForm(SalverEntity userEntity) { service.Update(userEntity); }
public void SubmitForm(SalverEntity salverEntity, int?keyValue) { service.SubmitForm(salverEntity, keyValue); }