/// <summary>
 /// Add ADUser to Group
 /// </summary>
 /// <param name="userlogin"></param>
 /// <param name="groupName"></param>
 /// <returns></returns>
 public bool AddUserToGroup(string userlogin, string groupName)
 {
     try
     {
         _directoryEntry = null;
         ADManager admanager = new ADManager(ADConfig.LDAPDomain, ADConfig.LDAPUser, ADConfig.LDAPPassword);
         admanager.AddUserToGroup(userlogin, groupName);
         return true;
     }
     catch (Exception ex)
     {
         return false;
     }
 }
 public bool AddUserToGroup(string userlogin, string groupName)
 {
     try
     {
         _directoryEntry = null;
         ADManager admanager = new ADManager();
         admanager.AddUserToGroup(userlogin, groupName);
         return true;
     }
     catch (Exception ex)
     {
         return false;
     }
 }