Пример #1
0
        public virtual ActionResult Login(UserModel model)
        {
            if (LoginManage.Login(model.LoginName, model.PassWorld, model.IsKeep))
            {
                return Json(new { Res =true});
            }

            return Json(new { Res = false, Msg = "您输入的帐号或密码不正确,请重新输入。" });
        }
Пример #2
0
 public virtual ActionResult Register(UserModel model)
 {
     return View();
 }
Пример #3
0
        //
        // GET: /User/
        public virtual ActionResult Login()
        {
            UserModel model = new UserModel();

            return View(model);
        }