public Attendance Create(int createdBy, Attendance attendance) { EAttendance eAttendance = EAttendance(attendance); eAttendance.CreatedDate = DateTime.Now; eAttendance.CreatedBy = createdBy; eAttendance = _iDAttendance.Create(eAttendance); return(Attendance(eAttendance)); }
public Attendance Create(int createdBy, int managerEmployeeId, Attendance attendance) { EAttendance eAttendance = EAttendance(attendance); eAttendance.CreatedDate = DateTime.Now; eAttendance.CreatedBy = createdBy; eAttendance.ManagerEmployeeId = managerEmployeeId; eAttendance = _iDAttendance.Create(eAttendance); return(Attendance(eAttendance)); }