コード例 #1
0
        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"));
        }