public int UpdateEmployee(string id, Employee employee) { EmployeeIS employeeIS = new EmployeeIS(); var effectRows = employeeIS.UpdateData(id, employee); return(effectRows); }
public int InsertEmployee(Employee employee) { EmployeeIS employeeIS = new EmployeeIS(); if (employeeIS.CheckEmployeeCode(employee.EmployeeCode) == true) { return(-1); } else { return(employeeIS.InsertData(employee)); } }