Exemplo n.º 1
0
        public ActionResult <Message> DoLogin()
        {
            string userName   = Request.Form["userName"];
            string password   = Request.Form["password"];
            string verifyCode = Request.Form["verifyCode"];

            var admin = new AdminLogin
            {
                UserName   = userName,
                Password   = password,
                VerifyCode = verifyCode
            };

            var msg = CMSAdminBO.AdminLogin(admin);

            if (msg.Success)
            {
                msg.Msg = Consts.Url_ManageIndex;
            }

            return(new JsonResult(msg));
        }