Exemple #1
0
        /// <summary>
        /// Based on the store picked the cart will be filled with what the user as selected at
        /// said store. Total calualtions will be made so you know how much it is going to be
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult CheckOutCart(int id)
        {
            List <Cart> carts = new List <Cart>();

            carts = _storeLevelPrograms.GetCartItems(HttpContext.Session.GetString("Guid"));
            _storeLevelPrograms.CheckOutCounter(carts, id, HttpContext.Session.GetString("Guid"));
            return(RedirectToAction("MainPage", "Home"));
        }