public bool CreateAttendance(AttendanceDto Attendance) { Attendance attendance = new Attendance(); attendance.EmployeeId = Int32.Parse(Attendance.EmployeeId); attendance.inTime = Attendance.inTime; _PayRollManagmentContext.Add(attendance); return(Save()); }
public bool CreateEmployee(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); _PayRollManagmentContext.Add(emp); return(Save()); }
public bool CreateSalary(Salary Salary) { _PayRollManagmentContext.Add(Salary); return(Save()); }
public bool CreatePayment(Payment Payment) { _PayRollManagmentContext.Add(Payment); return(Save()); }
public bool CreateOverTime(OverTime OverTime) { _PayRollManagmentContext.Add(OverTime); return(Save()); }