private void UpdateGroupList(IList <Group> groups)
        {
            Groups.Clear();
            OnlyGroups.Clear();
            Groups.Add(AllGroupForComboBox);

            if (groups == null)
            {
                SelectedGroup = Groups[0];
                return;
            }

            foreach (Group group in groups)
            {
                Groups.Add(group);
                OnlyGroups.Add(group);
            }

            SelectedGroup = Groups[0];
        }
        public async Task OnInitializedAsync()
        {
            IsDataLoading   = true;
            Products        = _mainWindowViewModel.Products;
            SelectedProduct = _mainWindowViewModel.SelectedProduct;
            if (SelectedProduct == null)
            {
                ClearDriverList();
                Groups.Clear();
                OnlyGroups.Clear();
                IsDataLoading = false;
                return;
            }

            await FetchGroupsAsync();
            await FetchAllDriversAsync();

            SelectedGroup = Groups[0];
            //SetGroupsAsPerTheSelectedProduct();
        }