public ActionResult VisOrdre(int id) { if (Session["AdminLoggetInn"] != null) { bool loggetInn = (bool)Session["AdminLoggetInn"]; if (loggetInn) { List <Bestilling> ordre = _adminBLL.hentAlleOrdre(id); Session["KundId"] = id; return(View(ordre)); } } return(RedirectToAction("Index")); }