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); }
public void UpdateEmployees(EmployeeDS ds, int[] roles, int empid) { EmployeeDALC edalc = new EmployeeDALC(); edalc.Update(ds); AuthorizationDALC adalc = new AuthorizationDALC(); adalc.UpdateRoles(roles, empid); }