コード例 #1
0
        //[HttpPost]
        public ActionResult Login(string Username, string Password)
        {
            string responce = null;

            //string CUname = Username;
            //string CPwd = Password;
            //if (responce != null)
            //{
            objPassword = new BALPassword();
            responce    = objPassword.Credentials(Username, Password);
            //if (Username == "sai" && Password == "sai")
            //{
            //    return Json("Success");
            //}
            if (responce == "Success")
            {
                return(Json("Success"));
            }
            else
            {
                return(View());
            }
            //}
            //return View();
        }
コード例 #2
0
        public int SaveRegister(string Username, string Password, string Email)
        {
            int responce = 10;

            objPassword = new BALPassword();
            responce    = objPassword.SaveCredentials(Username, Password, Email);

            if (responce == 1)
            {
                return(1);
            }
            return(0);
        }