Example #1
0
 public ActionResult LogOn(string userName, string userPwd)
 {
     bool result = IsAuth(userName,userPwd);
     ReturnModel m = new ReturnModel();
     if (result)
     {
         m.Code = "00000";
         m.Msg = "Success";
     }
     else
     {
         m.Code = "00001";
         m.Msg = "Failure";
     }
     return Json(m, JsonRequestBehavior.AllowGet);          
 }
Example #2
0
        public ActionResult LogOn(string userName, string userPwd)
        {
            bool        result = IsAuth(userName, userPwd);
            ReturnModel m      = new ReturnModel();

            if (result)
            {
                m.Code = "00000";
                m.Msg  = "Success";
            }
            else
            {
                m.Code = "00001";
                m.Msg  = "Failure";
            }
            return(Json(m, JsonRequestBehavior.AllowGet));
        }