private static void CreateGroup() { Console.WriteLine(); if (!ValidateContextPreGroupCreation()) { return; } Console.WriteLine("Start Group Creation..."); var group = GenerateGroup(); var createdGroups = GroupsService.CreateGroups( ApiContext.CompanyGuid.Value, new[] { group } ); Console.WriteLine(); if (createdGroups == null || createdGroups.Length == 0) { Console.WriteLine("Error Occurred During Creating Group."); return; } _createdGroup = createdGroups[0]; Console.WriteLine($"Finished Group Creation. New Group Id: {_createdGroup.Id}"); }