Exemple #1
0
        public static int Add(Employees employees, Designations designations)
        {
            int retvalue = -1;

            employees.DesignationsId = Designations.Add(designations);
            retvalue = Employees.Add(employees);
            return(retvalue);
        }
Exemple #2
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);
 }