Example #1
0
        public int UpdateEmployee(string id, Employee employee)
        {
            EmployeeIS employeeIS = new EmployeeIS();
            var        effectRows = employeeIS.UpdateData(id, employee);

            return(effectRows);
        }
Example #2
0
        public int InsertEmployee(Employee employee)
        {
            EmployeeIS employeeIS = new EmployeeIS();

            if (employeeIS.CheckEmployeeCode(employee.EmployeeCode) == true)
            {
                return(-1);
            }
            else
            {
                return(employeeIS.InsertData(employee));
            }
        }