コード例 #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());
 }
コード例 #4
0
 public bool CreatePayment(Payment Payment)
 {
     _PayRollManagmentContext.Add(Payment);
     return(Save());
 }
コード例 #5
0
 public bool CreateOverTime(OverTime OverTime)
 {
     _PayRollManagmentContext.Add(OverTime);
     return(Save());
 }