public ActionResult AddToCart(string id)
        {
            var cProduct = _storeRepo.GetOneProduct(id);
            var viewDP   = ViewModelMapper.MapSingleBindedProduct(cProduct);

            return(View(viewDP));
        }
        public ActionResult Edit(string id)
        {
            JsonFilePersist        persist  = new JsonFilePersist();
            List <CProduct>        products = persist.ReadProductsTempData(TempData.Peek("Cart").ToString());
            CProduct               foundProduct;
            BindedProductViewModel viewProduct;

            if (products == null)
            {
                return(RedirectToAction("CheckCart"));
            }
            foreach (var product in products)
            {
                if (product.UniqueID == id)
                {
                    foundProduct = product;
                    viewProduct  = ViewModelMapper.MapSingleBindedProduct(foundProduct);
                    return(View(viewProduct));
                }
            }
            return(View());
        }