Beispiel #1
0
        public ActionResult Index(Admin innAdmin)
        {
            if (ModelState.IsValid)
            {
                bool loginOk = _adminBILL.Admin_i_db(innAdmin);

                if (loginOk)
                {
                    Session["LoggetInn"] = true;
                    ViewBag.Innlogget    = true;
                    return(RedirectToAction("AdminSide"));
                }
                else
                {
                    Session["LoggetInn"] = false;
                    ViewBag.Innlogget    = false;
                }
            }

            return(View());
        }