public ActionResult SeachByPriceRange(float minPrice, float maxPrice)
        {
            if (IsActiveSession())
            {
                var data = ProductProcessor.LoadProductsByPriceRange(minPrice, maxPrice);
                List <ProductModel> products = new List <ProductModel>();
                foreach (var row in data)
                {
                    products.Add(new ProductModel
                    {
                        Id            = row.Id,
                        ProductCode   = row.ProductCode,
                        Description   = row.Description,
                        UnitOfMeasure = row.UnitOfMeasure,
                        Category      = row.Category,
                        Price         = row.Price,
                        ImageTitle    = row.ImageTitle,
                        ImagePath     = row.ImagePath,
                        IsActive      = row.IsActive
                    });
                }

                //getting cart products
                int userId = (int)Session["userId"];
                List <CartProductsModel> cartProducts = GetCartProducts(userId);

                //setting store products
                StoreViewModel storeViewModel = new StoreViewModel
                {
                    StoreProducts = products,
                    CartProducts  = cartProducts
                };
                return(View("Index", storeViewModel));
            }
            return(RedirectToAction("Login", "Login", null));
        }