Ejemplo n.º 1
0
        public static int Add(Employees employees, EmployeeTypes employeeTypes)
        {
            int retvalue = -1;

            employees.EmployeeTypesId = EmployeeTypes.Add(employeeTypes);
            retvalue = Employees.Add(employees);
            return(retvalue);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 public static void Update(int empId, Employees employees, EmployeeTypes employeeTypes)
 {
     employees.EmployeeTypesId = EmployeeTypes.Add(employeeTypes);
     Employees.Update(empId, employees);
 }