Beispiel #1
0
        public static int Add(Employees employees, EmployeeTypes employeeTypes)
        {
            int retvalue = -1;

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