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)); }