Esempio n. 1
0
        public void CreateEmployee(EmployeeDS ds, int[] roles)
        {
            EmployeeDALC edalc = new EmployeeDALC();

            edalc.Update(ds);

            AuthorizationDALC adalc = new AuthorizationDALC();

            adalc.UpdateRoles(roles, ds.Employee[0].EmpID);
        }
Esempio n. 2
0
        public void UpdateEmployees(EmployeeDS ds, int[] roles, int empid)
        {
            EmployeeDALC edalc = new EmployeeDALC();

            edalc.Update(ds);

            AuthorizationDALC adalc = new AuthorizationDALC();

            adalc.UpdateRoles(roles, empid);
        }