//
        // GET: /Store/AddToCart/5
        //[ChildActionOnly]
        public ActionResult AddToCart(decimal id)
        //public ActionResult AddToCart(BusinessLayer.FoodItem id)
        {
            // Retrieve the album from the database

            /*BusinessLayer.FoodItem addedAlbum = storeDB.FoodItems
             *  .Single(album => album.FoodItemId == id);*/
            BusinessLayer.FoodItem fooditem = dbset.FoodItems.Single(emp => emp.FoodItemId == id);

            //Get SubgroupID

            decimal subgrpId = fooditem.FoodGroupId;

            // Add it to the shopping cart
            BusinessLayer.ShoppingCart cart = BusinessLayer.ShoppingCart.GetCart(this.HttpContext);

            cart.AddToCart(fooditem);
            //cart.AddToCart(id);

            // Go back to the main store page for more shopping
            //return RedirectToAction("Index", "Home");
            return(RedirectToAction("Browse", "Store", new { id = subgrpId }));
        }
        public void AddProduct(Guid shopCartId, Product product)
        {
            ShoppingCart shoppingCart = _appContext.Set <ShoppingCart>().Where(sc => sc.Id == shopCartId).FirstOrDefault();

            shoppingCart.AddToCart(product);
        }