Пример #1
0
        public ActionResult Login2()
        {
            string       name = Request["name"];
            string       pwd  = Request["pwd"];
            List <users> list = uuBll.Login(e => e.u_name == name && e.u_password == pwd);

            if (list[0].u_name != null && list[0].u_password != null)
            {
                return(Content("<script>alert('登陆成功!');window.location.href='/Login/ShouYeIndex'</script>"));
            }
            else
            {
                return(Content("<script>alert('登陆失败!');window.location.href='/Login/Login'</script>"));
            }
        }