public void checker(string searchTxt, string category, int amount, int len)
        {
            if (String.IsNullOrEmpty(searchTxt) && String.IsNullOrEmpty(category))
            {
                return;
            }

            if (!String.IsNullOrEmpty(searchTxt) && !String.IsNullOrEmpty(category))//both not empty
            {
                CategoryIndex = CategoryItems.IndexOf(category);
                //GetSearch(searchTxt, category, amount, len,false);
            }
            else if (!String.IsNullOrEmpty(searchTxt) && String.IsNullOrEmpty(category))//category empty
            {
                CategoryIndex = 0;
                //GetSearch(searchTxt, category, amount, len);
            }
            else if (String.IsNullOrEmpty(searchTxt) && !String.IsNullOrEmpty(category))//search text empty
            {
                isRandom = true;
                if (category == CategoryItems[0])
                {
                    GetRandomProducts(0, 10, false);
                }
                else
                {
                    CategoryIndex = CategoryItems.IndexOf(category);
                }
                //GetCategoryItems(category, len, amount);
            }
        }