Exemplo n.º 1
0
        public ActionResult EndreForfatter(int id)
        {
            if (Session["AdminLoggetInn"] != null)
            {
                bool loggetInn = (bool)Session["AdminLoggetInn"];

                if (loggetInn)
                {
                    Forfatteren enForfatter = _adminBLL.hentEnForfatter(id);
                    return(View(enForfatter));
                }
            }
            return(RedirectToAction("Index"));
        }