예제 #1
0
        public bool CreateAttendance(AttendanceDto Attendance)
        {
            Attendance attendance = new Attendance();

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

            _PayRollManagmentContext.Add(attendance);
            return(Save());
        }
예제 #2
0
        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());
        }
예제 #3
0
 public bool CreateSalary(Salary Salary)
 {
     _PayRollManagmentContext.Add(Salary);
     return(Save());
 }
 public bool CreatePayment(Payment Payment)
 {
     _PayRollManagmentContext.Add(Payment);
     return(Save());
 }
예제 #5
0
 public bool CreateOverTime(OverTime OverTime)
 {
     _PayRollManagmentContext.Add(OverTime);
     return(Save());
 }