Esempio n. 1
0
        public bool UpdateAttendance(AttendanceDto Attendance)
        {
            Attendance attendance = new Attendance();

            attendance.AttendanceId = Int32.Parse(Attendance.AttendanceId);
            attendance.EmployeeId   = Int32.Parse(Attendance.EmployeeId);
            attendance.inTime       = Attendance.inTime;
            attendance.outTime      = Attendance.outTime;

            _PayRollManagmentContext.Update(attendance);
            return(Save());
        }
Esempio n. 2
0
        public bool UpdateEmployee(EmployeeDto employee)
        {
            Employee emp = new Employee();

            emp.FirstName      = employee.FirstName;
            emp.LastName       = employee.LastName;
            emp.RegistrationNo = employee.RegistrationNo;
            emp.Gender         = employee.Gender;
            emp.Address        = employee.Address;
            emp.ContactInfo    = employee.ContactInfo;
            emp.Birthdate      = employee.Birthdate;
            emp.ImgUrl         = employee.ImgUrl;
            emp.CreatedOn      = employee.CreatedOn;
            emp.PoistionId     = Int32.Parse(employee.PositionId);
            emp.EmployeeId     = Int32.Parse(employee.EmployeeId);

            _PayRollManagmentContext.Update(emp);
            return(Save());
        }
 public bool UpdatePayment(Payment Payment)
 {
     _PayRollManagmentContext.Update(Payment);
     return(Save());
 }
Esempio n. 4
0
 public bool UpdateOverTime(OverTime OverTime)
 {
     _PayRollManagmentContext.Update(OverTime);
     return(Save());
 }