Пример #1
0
        public IActionResult Basket()
        {
            BasketViewModel model = new BasketViewModel();

            model.Products = new List <ProductDTO>();

            if (_sessionContainer.GetBasket(HttpContext, "basket") != null)
            {
                model.Products = _sessionContainer.GetBasket(HttpContext, "basket");
            }

            return(View(model));
        }