Ejemplo n.º 1
0
        public void AddQueueMembers(string queueId, string queueMembers)
        {
            try
            {
                User userMember = new User(_lstLog);
                var  userId     = userMember.GetUserId(queueMembers);

                Boolean deleteMembers      = false;
                List <WritableEntity> body = new List <WritableEntity>();

                WritableEntity user = new WritableEntity();
                user.Id = userId;

                body.Add(user);

                routingApi.PostRoutingQueueUsers(queueId, body, deleteMembers);

                AddLog("Members is added in queue: " + queueMembers);
            }
            catch (Exception ex)
            {
                AddLog($"Error in AddQueueMembers: {ex.Message}");
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }