public IActionResult ShowCart() { HashSet <int> cartProductsId; string productsCookiesJson = Request.Cookies["UserProducts"]; if (string.IsNullOrWhiteSpace(productsCookiesJson)) { cartProductsId = new HashSet <int>(); } else { cartProductsId = JsonConvert.DeserializeObject <HashSet <int> >(productsCookiesJson); } List <Product> currentCart = _cookiesService.ShowCart(cartProductsId); return(View(currentCart));// לא מימשנו את הview }