public void SyncUserFromActiveDirectory() { var syncBatch = new SyncBatch(); syncBatch.BatchStart = DateTime.Now; Guid batchGuid = _syncBatchService.Insert(syncBatch); _userSyncService.SyncUsersFromActiveDirectory(_adContext, batchGuid); }
public IActionResult Index() { var syncBatch = new SyncBatch(); syncBatch.BatchStart = DateTime.Now; Guid batchGuid = _syncBatchService.Insert(syncBatch); //_groupSyncService.SyncGroupsFromActiveDirectory(_adContext, batchGuid); //_groupSyncService.SyncGroupUsersAndManagerFromActiveDirectory(_adContext, batchGuid); _userSyncService.SyncUsersFromActiveDirectory(_adContext, batchGuid); return(View()); }