public void RemoveActionFromQueue(string uid) { if (ActionQueue == null || ActionQueue.Count == 0) { return; } var action = ActionQueue.FirstOrDefault(x => x.Uid == uid); if (action != null) { RemoveFromManualActionQueue(action); } }