public ActionResult hentAlleBoker() { if (Session["AdminLoggetInn"] != null) { bool loggetInn = (bool)Session["AdminLoggetInn"]; if (loggetInn) { List <Boken> boker = _adminBLL.hentAlleBoker(); return(View(boker)); } } return(RedirectToAction("Index")); }