private String ObtainRequestedAction(String action, out String innerAction) { innerAction = null; int index = action.IndexOf('-'); if (index != -1) { innerAction = action.Substring(index + 1); return action.Substring(0, index); } return action; }