private static void _SyncMembers(IEnumerable<MembershipDetails> membershipDetails) { using (var net2Client = new PaxtonClient()) { var userRepository = new PaxtonUserRepository(net2Client, _trialRunOnly); var paxtonUsers = userRepository.GetAllUsers(); foreach (var details in membershipDetails) _SyncMember(details, paxtonUsers, userRepository); } }
public PaxtonUserRepository(PaxtonClient net2Client, bool trialRunOnly) { _net2Client = net2Client; _trialRunOnly = trialRunOnly; }