public static int Add(Employees employees, EmployeeTypes employeeTypes) { int retvalue = -1; employees.EmployeeTypesId = EmployeeTypes.Add(employeeTypes); retvalue = Employees.Add(employees); return(retvalue); }
public static int Add(Employees employees, EmployeeTypes employeeTypes, Designations designations) { int retvalue = -1; employees.EmployeeTypesId = EmployeeTypes.Add(employeeTypes); employees.DesignationsId = Designations.Add(designations); retvalue = Employees.Add(employees); return(retvalue); }
public static void Update(int empId, Employees employees, EmployeeTypes employeeTypes, Designations designations) { employees.DesignationsId = Designations.Add(designations); employees.EmployeeTypesId = EmployeeTypes.Add(employeeTypes); Employees.Update(empId, employees); }
public static void Update(int empId, Employees employees, EmployeeTypes employeeTypes) { employees.EmployeeTypesId = EmployeeTypes.Add(employeeTypes); Employees.Update(empId, employees); }