private void HandleSearchActions(GetProducts getProducts)
        {
            if (string.IsNullOrEmpty(SelectedShop) && string.IsNullOrEmpty(SearchString))
            {
                Products = getProducts.GetAllProductsWithPagination(CurrentPage, PageSize);
                Count    = getProducts.CountAllProducts();
                return;
            }

            if (!string.IsNullOrEmpty(SelectedShop) && SelectedShop == "Wszystkie" && string.IsNullOrEmpty(SearchString))
            {
                Products = getProducts.GetAllProductsWithPagination(CurrentPage, PageSize);
                Count    = getProducts.CountAllProducts();
                return;
            }

            if (!string.IsNullOrEmpty(SelectedShop) && SelectedShop == "Wszystkie" && !string.IsNullOrEmpty(SearchString))
            {
                Products = getProducts.GetProductsWithSearchStringAndPagination(CurrentPage, PageSize, SearchString);
                Count    = getProducts.CountAllProductsWithSearchString(SearchString);
                return;
            }

            if (!string.IsNullOrEmpty(SelectedShop) && !string.IsNullOrEmpty(SearchString))
            {
                Products = getProducts.GetShopProductsWithSearchStringAndPagination(CurrentPage, PageSize, SelectedShop, SearchString);
                Count    = getProducts.CountProductsForShopWithSearchString(SelectedShop, SearchString);
                return;
            }

            if (!string.IsNullOrEmpty(SelectedShop) && string.IsNullOrEmpty(SearchString))
            {
                Products = getProducts.GetShopProductsWithPagination(CurrentPage, PageSize, SelectedShop);
                Count    = getProducts.CountProductForShop(SelectedShop);
                return;
            }

            if (string.IsNullOrEmpty(SelectedShop) && !string.IsNullOrEmpty(SearchString))
            {
                Products = getProducts.GetProductsWithSearchStringAndPagination(CurrentPage, PageSize, SearchString);
                Count    = getProducts.CountAllProductsWithSearchString(SearchString);
                return;
            }
        }