void frm_RoleSelected(object sender, RoleSelectedArg e, Window window) { window.Close(); BizRole bizRole = new BizRole(); bizRole.AddUserToRole(e.Role.ID, selectedUser.ID); var roleList = bizRole.GetRolesByUser(selectedUser.ID); dtgRolesByUser.ItemsSource = roleList; }
void frm_UserSelected(object sender, UserSelectedArg e, Window window) { window.Close(); BizRole bizRole = new BizRole(); bizRole.AddUserToRole(selectedRole.ID, e.User.ID); BizUser bizUser = new BizUser(); List <UserDTO> userList = bizUser.GetUserByRole(selectedRole.ID); dtgUsersByRole.ItemsSource = userList; }