public ActionResult Liste() { if (Session["AdminLoggetInn"] != null) { bool loggetInn = (bool)Session["AdminLoggetInn"]; if (loggetInn) { List <Kunde> alleKunder = _adminBLL.hentAlle(); return(View(alleKunder)); } } return(RedirectToAction("Index")); }