public static int Add(Employees employees, Designations designations) { int retvalue = -1; 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); }