// not yet updated, should be able to update quantity as well
        public ActionResult Edit(string id)
        {
            string storeLoc    = TempData.Peek("adminLoc").ToString();
            var    cProduct    = _storeRepo.GetOneProductWithQuantity(storeLoc, id);
            var    viewProduct = ViewModelMapper.MapSingleDetailedProductWithoutTotal(cProduct);

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

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