public ActionResult AddToCart(int id)
 {
     var cart = new ShoppingCartLogic();
       cart.AddToCart(id);
       var cartItem = cart.GetCartItems();
       return View(cartItem);
 }
 public ActionResult Kvittering()
 {
     var cart = new ShoppingCartLogic();
       var cartItem = cart.GetCartItems();
       if (Session["InnLogget"] != null)
       {
     Session["InnLogget"] = true;
     ViewBag.Loggetinn = true;
     return View(cartItem.ToList());
       }
       else
       {
     Session["InnLogget"] = false;
     ViewBag.Loggetinn = false;
     return RedirectToAction("../Sikkerhet/Index");
       }
 }
 // GET: CartItems
 public ActionResult Index()
 {
     var cart = new ShoppingCartLogic();
     var cartItem = cart.GetCartItems();
     return View(cartItem.ToList());
 }