public ActionResult SearchForProduct(string productName)
        {
            LoadDropDownList();
            DataManager manager = new DataManager();
            int BlockSize = 8;

            var products = manager.GetProductsByName(1, BlockSize, productName).ToList();
            return View(products);
        }
 public ActionResult InfinateScrollSearchByName(int BlockNumber, string searchValue)
 {
     //////////////// THis line of code only for demo. Needs to be removed ////
     System.Threading.Thread.Sleep(800);
     //////////////////////////////////////////////////////////////////////////
     int BlockSize = 8;
     var manager = new DataManager();
     var products = manager.GetProductsByName(BlockNumber, BlockSize, searchValue);
     var jsonModel = new DataManager.JsonModel
                         {
                             NoMoreData = products.Count < BlockSize,
                             HTMLString = RenderPartialViewToString("ProductList", products)
                         };
     return Json(jsonModel);
 }