Beispiel #1
0
        public ActionResult login(LoginModel lm, string userType)
        {
            userType = "admin";
            int a = lm.AdminLogin();

            if (userType == "admin" && a > 0)
            {
                Session["login_session"] = "ok";
                return(RedirectToAction("admin_panel", "Admin_Panel"));
            }
            else
            {
                return(RedirectToAction("login", "Login"));
            }
        }