public bool SaveSeeLeave(string appreason, int select, DateTime stime, DateTime etime) { Leave leave = leaveDAL.LoadEntities(u => u.LeaveStartTime == stime && u.LeaveEndTime == etime).FirstOrDefault(); leave.ApprovalTime = DateTime.Now; leave.ApproverReason = appreason; leave.ApproverID = 0;//暂定0 leave.LeaveState = select; return(leaveDAL.ModifyEntity(leave)); }