Пример #1
0
        public Attendance Update(int updatedBy, Attendance attendance)
        {
            EAttendance eAttendance = EAttendance(attendance);

            eAttendance.UpdatedDate = DateTime.Now;
            eAttendance.UpdatedBy   = updatedBy;
            eAttendance             = _iDAttendance.Update(eAttendance);

            return(Attendance(eAttendance));
        }
Пример #2
0
        public void Approve(int approvedBy, int attendanceId)
        {
            EAttendance eAttendance = _iDAttendance.Read <EAttendance>(a => a.AttendanceId == attendanceId);

            eAttendance.UpdatedDate = DateTime.Now;
            eAttendance.UpdatedBy   = approvedBy;

            eAttendance.ApprovedDate = DateTime.Now;
            eAttendance.ApprovedBy   = approvedBy;
            _iDAttendance.Update(eAttendance);
        }